A Sane Directory Structure for Software Projects
7 months ago by codeinabox to c/programming
@programming.dev
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
go to feed...
@programming.dev
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
go to feed...
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,
cargolooks for asrc/main.rsorsrc/lib.rsas an entrypoint.uvexpects one of a couple different project structures before you need to touch thepyproject.toml. C# will create namespaces for each of these nested subdirectories if you don't carefully configure it in your.csprojfile. 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.
save