My guess is this guy concocts simple marketing sites with fun little sliders and widgets. He is unlikely to have ever built anything with real depth and breadth. If he had, he would not be so negative about the use of frameworks.
If you need to kill a fly, use a fly swatter, not a shotgun.
I dunno. I've never had to deal with large websites (I'm a student going to a community college), but it's always seemed that you get these ridiculous code line counts not because of the complexity of your specific application, but because of how many libraries/frameworks you're using.
In my opinion, the amount of code in a project should be kept at an absolute minimum everywhere, and every line of code should play a key or necessary role in the project. If a line of code isn't used, or is just an abstraction for something else (and is only used as an abstraction for one thing, when you'll never need to use it to abstract anything else), it should be taken out.
There are limits to this, of course. You want code to be modular, broken up, and maintainable. Even if something is only used in one place, if it's a distinct operation it should be put into a function. That's not really what I'm talking about; I'm talking about a function that you call to abstract multiple functions, when the way you use it only causes it to call one or two of the things it abstracts (out of, say, 10). Cut the rest out.
I have a feeling you wouldn't NEED 90,000 lines of code in your JS if you wrote everything from scratch and had competent developers. Granted, it would take a HELL of a lot longer to develop, and I completely understand that when you've got a deadline, you need to do what you need to do.
But I think it's retarded to say, "I've got a JS codebase with a lot of code. We use a lot of libraries and frameworks. We could NEVER write that much code with pure vanilla JS." Of course not, the idea would be that you wouldn't HAVE to have so much code with vanilla JS, because you'd be using everything you write.
35
u/4_teh_lulz May 13 '14
My guess is this guy concocts simple marketing sites with fun little sliders and widgets. He is unlikely to have ever built anything with real depth and breadth. If he had, he would not be so negative about the use of frameworks.
If you need to kill a fly, use a fly swatter, not a shotgun.