3 ms·
> JS is the anti-tesis of zero maintenance. If you know what you are doing you can write zero dependency code that works well with old and modern browsers alik
by austincheney 7y ago
> JS is the anti-tesis of zero maintenance.
If you know what you are doing you can write zero dependency code that works well with old and modern browsers alike. This isn't as hard as it sounds either.
- tmikaeld 7y agoNot sure why you're downvoted, back-end JS written from the ground up and hardened by usage really do not require maintenance. Especially with solid API's like with Cloudflare Workers V8 variant.
- Silhouette 7y agoSure you can, but it might take you 2-3x as long to get the same results as you could have got by using modern JS features and APIs that aren't supported in older browsers, and it might take you 10-20x as long if you also have to reinvent the wheel for everything instead of using a few good libraries. For most projects in the real world, that is not going to be a trade-off worth making.
- austincheney 7y agoThe only way that is true is if your friendly abstraction is producing your test automation for you. Having no understanding of the DOM and the standard APIs then writing without dependencies might take 1000x longer. I was assuming a competent developer when I mentioned this isn’t that hard.
- BjoernKW 7y agoCase in point: https://bjoernkw.github.io/hexrgb/ https://bjoernkw.github.io/hexrgb/ Zero JavaScript dependencies. The only dependency is Bootstrap and that's just used for hassle-free layout and styling. The application works just as well without it. Admittedly, it's not a huge application but there's nothing in principle that would preclude a more complex application. The use of const prevents Internet Explorer up to IE 10 to run the application but that's a small trade-off I was willing to make in favour of more robust code.