Ask HN: Why is the source folder called 'src'?
1–10 of 16 posts
Re: Ask HN: Why is the source folder called 'src'?
#2Re: Ask HN: Why is the source folder called 'src'?
#3Re: Ask HN: Why is the source folder called 'src'?
#4One presumes calling it "src" is in historical alignment with UNIX using short names wherever possible to reduce typing (and the possibility for typos)
See also: "ls" (list files), "mv" (move), "cp" (copy), "/usr" (userland-specific items), "/bin" (binaries), and on and on
Re: Ask HN: Why is the source folder called 'src'?
#5My best guess is that `src` is shorter than `source` and thus faster to type.
That's why UNIX uses very short command names like 'rm' and 'ls'.
Re: Ask HN: Why is the source folder called 'src'?
#6Re: Ask HN: Why is the source folder called 'src'?
#7Re: Ask HN: Why is the source folder called 'src'?
#8Originally, way, way back in the day, there was good reason to be so terse. The first UNIX machines had literal teletypes for terminals; printers with moving parts. Every extra character meant wear and tear, paper, ink, and especially, time.
Re: Ask HN: Why is the source folder called 'src'?
#9One of the reasons I hate the command line is that it causes all sorts of tiny hacks like this as you need to type everything out.
Re: Ask HN: Why is the source folder called 'src'?
#10"White space is as important to code as silence is to music. Without them music is noise and code is an impenetrable wall of text." -Nils M Holm