Best of 2009

The blog posts Hacker News loved most in 2009. 403 posts.

Software Engineering
285

Pimping out git log

I got playing with git log and ended up creating this alias: [alias] lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative Which adds a git lg command that is a prettier version of git log --oneline.

297

Bithacks.h - bit hack macros

A part of being a great programmer is having your personal code library. With a personal code library I mean a repository of code that you have an intimate knowledge of and that you can reuse quickly. If you are a C programmer, you don't want to reimplement linked lists, trees, various utility functions, macros and...