|
This thread is locked; no one can reply to it. |
1
2
|
Guys this is a really important question |
Mark Oates
Member #1,146
March 2001
|
Should I use the name source/ or src/ in my project's directory tree?
-- |
Felix-The-Ghost
Member #9,729
April 2008
|
Mark Oates
Member #1,146
March 2001
|
I've been going with: bin/ docs/ examples/ include/ lib/ obj/ source/ tests/ tools/ Makefile README.md But keep going back and forth on source/ or src/ -- |
bamccaig
Member #7,536
July 2006
|
Definitely src. It's universally understood, standard within the Unix file system hierarchy standard[1], and it's shorter to type. -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
Elias
Member #358
May 2000
|
In Android dev, the source code folders for an app all live underneath a directory called src, so seems Google likes that name as well. -- |
bamccaig
Member #7,536
July 2006
|
Whenever I see "source" or the like I . -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
Edgar Reynaldo
Major Reynaldo
May 2007
|
You tricked me. I thought the question was actually important. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Arvidsson
Member #4,603
May 2004
|
Tradition is the illusion of permanence. I say go with "source"!
|
Elias
Member #358
May 2000
|
I would say the most important is consistency. So if you go with "source", you probably should use "binary" instead of "bin" and "documentation" instead of "docs" -- |
Arvidsson
Member #4,603
May 2004
|
And vice versa. inc instead of include
|
OnlineCop
Member #7,919
October 2006
|
By that logic, tools/ should be 2ls/.
|
amarillion
Member #940
January 2001
|
When it comes to directories, I choose src and include But when it comes to naming variables however, I've got another important question. Do you pair src with target or with dest? -- |
Elias
Member #358
May 2000
|
I pair it with both, target is the enemy my unit is shooting at while moving to its destination. -- |
Neil Roy
Member #2,229
April 2002
|
I have always understood src as being a standard. OnlineCop said: By that logic, tools/ should be 2ls/. Everyone knows that should be tls! --- |
Specter Phoenix
Member #1,425
July 2001
|
I'm just a lazy typist when it comes to directory names and I would have named mine as so: bin/
|
André Silva
Member #11,991
May 2010
|
If one shortens "documents" to "docs", then surely it stands to reason to shorten "source" to "src". But what if one keeps "examples" unabbreviated? You know what, just go with the one that requires less typing. A quarter-second saved is a quarter-second earned.
|
Mark Oates
Member #1,146
March 2001
|
André Silva said: If one shortens "documents" to "docs", then surely it stands to reason to shorten "source" to "src". But what if one keeps "examples" unabbreviated? expls, duh! -- |
Felix-The-Ghost
Member #9,729
April 2008
|
Specter Phoenix said: ex/
|
bamccaig
Member #7,536
July 2006
|
The examples directory is one that is going to be used relatively rarely. The source directory on the other hand will be used all the damn time. As with most things, don't bother optimizing/obfuscating things that don't require it. This explains why we have examples or images, but src. It doesn't necessarily explain include, but fuck you. That said, another advantage specifically for bin, lib, obj, src and tests is that you can type each with a single hand on a QWERTY keyboard without having to move much. That's probably a bigger advantage than just the length. -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
Erin Maus
Member #7,537
July 2006
|
I use source to be consistent with include. But I don't have a strong opinion one way or the other. --- |
Bruce Perry
Member #270
April 2000
|
sauce/ -- |
Trezker
Member #1,739
December 2001
|
magic/ |
bamccaig
Member #7,536
July 2006
|
^ I like that. -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
|
1
2
|