Poll: What did you name the parent dir where you keep code?

2 points by ericb ↗ HN
What is the name of the folder you clone your repos into?

I'm curious, but also, if I create a coding demo video for devs, I'd probably use the most popular name just for familiarity.

If it's something else, add it to the comments.

13 comments

[ 4.1 ms ] story [ 39.7 ms ] thread
$HOME/src/{domain}/{org}/{repo}, which was stolen from the hierarchical organization of Golang bin / pkg / src, albeit one level closer to $HOME than $HOME/go/src.

For a developer named foo with a GitHub account, a repo named bar would, for example, be found at $HOME/src/github.com/foo/bar.

$HOME/var/<whatever> for things I'm actually working on, there's a "src" there but its for "reference" sources that I'm not working on. Clean copies of stuff I'm hacking, and other "read only" code goes there.
~/Repos of course
anything in ~/ or /media/user/2TBSSD is fair game.
~/work
Close but no cigar. <grin>

~/wrk

C'mon, ~/w is clearly the winner here.

I am reminded of Ken Thompson's comment when asked what he'd do differently if he reinvented Unix: "I'd spell 'creat' with two e's".

  ~/
You put your projects on the bare home directory? I could never do that, would clutter up my home directory too much.