Sometimes, one creates a exploratory prototype and forgets about structure in the directories...
What are good tips on dividing the programming files over (several levels of) directories?
If your language is OOP and package based (Eg Java), then you should probably keep each package in its own folder (eg my/package/name
) to keep with the convention.
If your language isn't package based (Eg PHP), then organize by what each file does. Here's an example
/util
/plugin
/admin
, along with ALL supporting files/javascript
/css
/templates/templateName
Language agnostic, Most people have a /src
directory for all source files, a /lib
directory for libraries, and a /bin
or /dist
directory for builds.