Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Java allows you to put all your source files in one directory and javac *.java will happily compile them. Package-directory structure applies only for compiled classes and internal content of a jar file. For Java sources, that is just a convention.

But of COURSE, it is so modern to blame Java for everything these days.



I had no idea. Why do so many projects setup these crazy directory trees for source then?


Because it allows you to have your User.java class in both com.comp.ldap and com.comp.db packages.


Blaming java is nothing new.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: