Why can't we have webapps coded in just a few source file?
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?
7 comments
[ 0.23 ms ] story [ 41.3 ms ] threadI think that apps become as complex as you make them - I plan to split my app.py into a models.py and views.py. It's easier, I feel, to manage them this way.
Keep in mind that I'm not using some large IDE - I switch between Vim and Chocolat.
Having 50-100k loc files sound horrible by the way. I would not want that to happen in Rails.
You were doing it wrong.
Plus, implying that IDEs are for "pussies" (whatever that even means) doesn't give the impression of you being particularly clever.
The idea of multiple files is to have a modular approach which means easy to divide tasks, collaborate and mange version controls. Sure it means having to traverse through multiple directories/paths/files but this small sacrifice is nothing compared to the risk of having large source files.
Oh wow. You're in all sorts of trouble right off the bat. Not only are you missing out, but also and worse, the fact you say it is for "pussies" is a really bad sign. You're probably missing out on other great tools because you simply are prejudiced against them. And yes, I can use cat, vim, and even emacs. A good IDE is crazy-more powerful.
Wouldn't such IDE feature provide all benefits of a single huge file - but with different physical files, e.g. for source control purposes?