Lurker News

Comments (150) 67 threads

Earlier comments
arvinsim#
This just convinced to just don't bother with using github pages and use the README.md file instead
ymse2 replies#
Lots of good stuff here. I would appreciate a wiki-style site with short answers like these instead of searching {Google,DDG} and trawling the [stackoverflow] results.

Not all of them are necessarily good practice though. This made me chuckle:
What Is The Current [Git] Branch?

    git rev-parse --abbrev-ref HEAD
(if you're reading this jbranchaud, try `git branch` :p)
voltagex_#
You could open an issue on his repo :)
lunixbochs#
`git branch` also determines whether your working tree is modified. This can be extremely slow on large repos.

`git rev-parse --abbrev-ref HEAD` is very inexpensive in comparison, and doesn't print anything extra you might need to parse out if you're in a shell script.

feed16#
I wish technology was simple enough that writing these TILs would be unnecessary.
jsgrahamus#
I thought TIL stood for Threaded Interpretive Language, as per Forth or Factor

Load more comments