The unix system scene from Jurassic Park
I know this, this is a Unix system!

In Programming Folder Structure Doesn’t Matter As Much As You Think

Andrew Zuo
Lost, But Coding
Published in
6 min readMay 10, 2023

--

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…

--

--

Andrew Zuo
Lost, But Coding

Join me on my language learning journey with Litany, a smarter SRS language learning app. Available on iOS apple.co/3rZyh9B and Android bit.ly/38qt9xW