Git, tips, working life Shift Gear with Git A command, an option and a hack, not necessarily in this order, can help you to manage complex repositories.
versioning, tips Binary Files And VCS I've already written about why you should not add binary files to your code repository [https://while2.ghost.io/never-ever-add-binary-files-to-your-vcs/] but, there are some cases where it seems
C, development, tips The Size Of Strings It's quite common to find pieces of C code like the following: void do_something() { const char foo[] = "This is foo"; ... func(foo, sizeof(foo)); ... } This
versioning, tips Never Ever Add Binary Files To Your VCS OK, sometimes you are allowed to keep track of blobs but only if you have no alternatives. There are very few situations where you cannot do otherwise: for example when
GCC, compilers, tips GCC Is Your Friend A couple of years ago, I wanted to put some functions to write logs into a C library (shared object). My idea was to have something that was easy to
Git, tips, versioning 4 Easy Tips To Work Better With Git Maybe they are quite trivial and only come from common sense, but sometimes it's useful to repeat. By the way, these are general purpose suggestions that can be
working life, Git, tips How To Recover Deleted Git Commits Why `git reset --hard` should be used carefully and what to do if you mess up with it.
development, C, tips Bitwise Right Shift With Signed Int It's never too late to learn something new. And sometimes the compiler is smarter than what you think. In this case, I've discovered this behavior a
Linux, tips, development [Linux] How to Define a Path for Shared Objects In Linux, the predefined paths for shared objects (.so) are /lib/ and /usr/lib/. During normal usage this is OK but sometimes it's necessary to specify other additional
development, tips 6 + 1 Tips to Write Easily Extensible Code As promised in the post The 0 Ohm Resistor [https://while2.ghost.io/the_0_ohm_resistor/], here there are some suggestions you may find useful while developing a new