Topics /

Software Engineering

The most popular blog posts about software engineering on Hacker News. 403 posts.

2009
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.

291

Django tip: Caching and two-phased template rendering

We've launched user accounts at EveryBlock , and we faced the interesting problem of needing to cache entire pages except for the "You're logged in as [username] " bit at the top of the page. For example, the Chicago homepage takes a nontrivial amount of time to generate and doesn't change often -- which means we want…

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...