Conversation

the bigger a programming project gets, the more directories deep the actual code gets buried

small hobby project: put all the code at the top-level directory

medium hobby project: maybe put some of it in a lib/ or common/ directory

large hobby project: all of the code should go in a package-name/ directory

serious FOSS project: all of the code is in src/main/docker-0/include/rust/lib/java/package-name/.pylintrc/

5
2
12

I’m afraid of folks who can look at a FOSS project’s codebase and come away with any understanding of the horrors that lie within

0
0
6

@kasdeya I refactored a project because the main code was in backend/app/app

Nope, not a typo. Two levels of app/

0
1
1

@kasdeya time to get out the FactoryBuilderFactory

0
0
1
@kasdeya rust:
- small? src/lib.rs
- large? crates/whatever-sys/src/lib.rs

c#:
- small? Program.cs
- medium? src/Program.cs
- large? src/Whatever.SubAssembly/Program.cs

lua:
- idk. you have lua files Somewhere

java:
- src/main/java/tld/domain/subdomain/anothersubdomain/sureletsputathirdsubdomainintherewhynot/Main.java
0
0
2