In Programming Folder Structure Doesn’t Matter As Much As You Think
I wanted to talk about something that I often hear talked about but I’ve never found to make a meaningful difference: folder structure.
Well, actually maybe never is too strong of a word. Sometimes folder structure can help, but not in the way you might expect.
My Experience
So I’m primarily a Flutter developer and this post is going to be primarily about that. So in Flutter we have a lot of widgets and it often makes sense to put the widgets in separate files just to make things more organized.
And then you may want to go one step further and put the files in separate folders thinking this may increase organization further. But I have not found this to be the case. In fact in the first Flutter project ‘Perceptron’ I did I had everything extremely organized. I had a folder called Logic
and a folder called UI
. Then I had different subfolders called Static
, Popups
, Managers
, etc. But as I made more and more Flutter projects each has been less organized than the last. And now in my RSS reader ‘Echo’ there is no folder structure at all. Just dump everything in lib
.
The reason for this change is I just rarely actually open files from the file explorer. Or the terminal. Usually I just open Android Studio and it will open the…