A Sane Directory Structure for Software Projects (trop.in)
from codeinabox@programming.dev to programming@programming.dev on 16 Mar 16:05
https://programming.dev/post/47302586

#programming

threaded - newest

tourist@lemmy.world on 16 Mar 18:09 next collapse
main.py          402MB
run.sh           1KB
TehPers@beehaw.org on 16 Mar 19:44 collapse

The high-level directory structure looks reasonable, but every language and build tool has its own recommended structure that people should use instead. For example, by default, cargo looks for a src/main.rs or src/lib.rs as an entrypoint. uv expects one of a couple different project structures before you need to touch the pyproject.toml. C# will create namespaces for each of these nested subdirectories if you don’t carefully configure it in your .csproj file. And so on.

It’s best to just use whatever’s recommended for your environment by your tools. Maybe this directory structure works well for Guile Scheme, but I wouldn’t touch it at all if I were writing Rust.