A good review as well as critique to the original “How to C in 2016”, debunking some myths, and making suggestions on how to really code in C.
The minimal fuss setup for frontend development, from Philip, one of my favorite professor, programmer and bloggers.
Just finished Clay Shirky’s Here Comes Everybody, which I think it’s a very interesting book. The author shared his insights on how the Internet effectively gathers the power of people, and how it is rapidly reshaping the society today. Book starts with a story on how Internet helps a lady to regain her lost cellphone with the assistance and pressure from people online, and expands discussion to what why it could happen, and what we should do about it. The world is smaller and people are closer than ever before, for better or worse, because of technologies. In this book, the author carefully analyzed ways Internet could affect our lives, what it means to the world.
I listed several observations the authors provided in this book, which I find very interesting.
On the graph traversal and their efficiency.
- Pre-order depth-first-search
- Reverse post-order depth-first-search
This could be a very helpful reference when designing data-flow analysis on programs.
How to use version numbers in a sensible way: the MAJOR.MINOR.PATCH format. And I quote:
- MAJOR version when you make incompatible API changes.
- MINOR version when you add functionality in a backwards-compatible manner.
- PATCH version when you make backwards-compatible bug fixes.
Your personal data is the fuel to power the Internet today, and how should we face it.
An interesting ‘bug’ in some versions of GCC (and Clang as well) implementation. Since it’s ‘undefined’ behavior after all, compiler is not obliged to implement it as a defined behavior. Use
-fwrapv flag in GCC to inform the compiler that integer value wraps.
Signal timeout for every small amount of time (say, 1ms in this case) and record the current stack, and we can infer time spent in each function precisely enough. A smart way of profiling large Python programs.
Note: python signal callback passes signal type and signal handler, and signal handler takes signal number and current stack frame.
Great book to Python, covering code style, best practices and scenario guide. Just started reading it.