Why can't we have webapps coded in just a few source file?

https://news.ycombinator.com/item?id=5409284
by gesman • 13 years ago
3 7 13 years ago

There is a growing tendency in web frameworks to separate code into zillions of puny source code files, each with just a couple of lines of code spread in dozens to hundreds of folder trees.

Result is the code where to find something takes multiple clicks, tab switches, searches, spawning of external tools and other unproductive efforts totally unrelated to development.

IDE's makes it somewhat easy for pussies - but I quickly end up having multiple dozen of open tabs and forced to jump back and forth and do extra clicks to switch between tabs just to find and edit a pieces.

All above results in consistent unproductive housekeeping effort just to search for code pieces, snippets and references.

Back to my C++ days I had written utilities and class files represented just by a couple of files reaching between 50-100k long. Today I would be tortured and killed for that. The huge advantage of having one source code file - is that it made me much more productive and made it extremely easy and quick to find information, refer to existing code, and find anything without reverting to external tools.

I am looking at my Rails app right now and dreaming of having these 2 files: all_models.rb all_controllers.rb

I know it's heresy and extreme, but don't you think we're approaching an opposite extreme already?

Related Stories

Loading related stories...

Source preview

news.ycombinator.com