4 ms·
> Your code is bad because you have multiple untrained developers just adding code to fix their current problems Yes, definitely! That is the core problem. M
by czottmann 13y ago
> Your code is bad because you have multiple untrained developers just adding code to fix their current problems
Yes, definitely! That is the core problem. My point, the one I obviously failed making, is that it's easier for an untrained dev to just add a line or two to a codebase where everything looks the same due to a lack of clear boundaries (modules, classes, whathaveyou).
I had to sift through ~10k lines of JS code that had accumulated over
a span of several years. There was no modularity, no real clear-cut structure, which made everything hard to read, so noone really bothered—they just layered crap on top, done.
Having a JS thing called `HerpDerpCtrl` where you can tell from searching your HTML whether or not it is still in use would have made the job of cleaning up much easier. That's why I like frameworks, they provide a structure.
It won't solve the problem of having bad developers in your team, or a lack of meaningful code reviews, or missing tests, but I believe it'll make it harder for people to screw things up.
- RyanZAG 13y agoAfter seeing this said numerous times about a number of different frameworks, I still disagree. The universe will invent a better idiot and your framework guarantees will make it even more difficult because they will find ways to subvert them and/or add in different modules from other frameworks. So while it might make it harder for people to screw things up at first glance, it will probably mean that when you inherit the code in 10 years time, they've managed to blow AngularJS's whole foot off and you're left trying to reconstruct the whole thing using tweezers. I have only one thing to say to the poor future maintainers of AngularJS apps in the future. Godspeed.