3 ms·
>The more code you have, the less agile you are. Code is a liability, not an asset. It's like tar. JavaScript libraries are getting bigger all the time and I do
by duxup 8y ago
>The more code you have, the less agile you are. Code is a liability, not an asset. It's like tar. JavaScript libraries are getting bigger all the time and I don't think that many people are critically evaluating the actual need for them. People frequently measure JavaScript in KB or MB as if it is just a download cost. But it's not. You also have to wait for the CPU to parse/execute it. It all adds up.
I have mixed feelings about that first line. A lot of JavaScript is there to provide features and "flexibility" that otherwise would not be there....
It's hard to have this conversation as the usual statements about pages loading "too much" javascript are true-ish generally. But there are plenty of web apps that use framekworks that do great things with "too much" javascript. Yet the assumption seems to be there's a huge amount of "too much" and it's all bad and so it's discussed globally and good tools and ideas are kinda washed over with a sort of javascript paranoia.
Meanwhile a lot of these articles present personal pages or fairly limited functionality (often who have javascript on their page...). I find them interesting and fun to read from a technical perspective, but some of the implications seem to pine for the days where the web was simpler (I miss those days too in some ways) but where functionality would also be lost.
This is very much a case where i don't disagree with any given tidbit, but I do with the implications and application, if that makes sense.
Hacker News is an interesting place and while I'm kinda a n00b when it comes to web development it feels like it is a very "server side" world on HN and discussions about the front end are sometimes a bit skewed.
- GoblinSlayer 8y agoI have noscript that disables scripts by default. I can't read forbes, but I don't miss it, there's a lot of other internets that I can read. Should I even try to read forbes?
- duxup 8y agoI mean it's Forbes so probably not a big loss. I feel like the folks running with no javascript already made their call, and that's their call. If you're developing a web app that "does a lot" (I'm just going to say that rather than get into individual things) It's pretty hard to do without javascript. But if it's a site just serving up text and pics, yeah you don't "need" it.