I don't know who originally said it but "If you're not using a framework, you're building a framework". This repo even has the following caveat: (2) These usually end up becoming a custom micro-framework, thereby questioning why you didn't use one of the established and tested libraries/frameworks in the first place. That said, I don't hate it. For quite some time, I've taken the stance that a web development team ne…
With es6 template strings you can do a lot of heavy lifting with some very simple code. This example still uses es5 to mr that’s insane who on the web is still using ie6?
Vanilla-todo: A case study on viable techniques for vanilla web development
41–50 of 154 posts
Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#42Earlier quoted context omitted.
React has been stable since ~2015, and there are no signs of that changing.
I guess this depends on your definition of "stable". Sure, React code written in 2015 will still work, but it's hardly the "modern" way to write React and if your organization's code was written entirely in 2015, engineers will probably be clamouring to rewrite it. Taking the somewhat-arbitrary but reasonable standpoint that "stable" means that there aren't any major architectural changes required to bring a codebase…
Another reason is the ease and speed of online documentation/resources. We all use StackOverflow to get answers and insight into problems we face on a daily basis, and as the framework (or library) progresses, the majority of Q&As adopt it, giving us a wealth of resources at our disposal.
Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#43Oops, I expected vanilla web development to mean server-rendered HTML with forms. Thanks for making me feel old.
Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#44Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#45Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#46Earlier quoted context omitted.
With es6 template strings you can do a lot of heavy lifting with some very simple code. This example still uses es5 to mr that’s insane who on the web is still using ie6?
IE11. IE11 remains the problem.
Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#47This is nice, patterns over libraries. I would question the choice to use ES5, as it makes it significantly more complicated to handle dependencies between modules in a scalable way. I understand the point of avoiding a build step, but if the code can run in modern clients without it I don’t think it breaks the spirit of the project to use a bundler to support certain older browsers. It’s a lot like using polyfills w…
Original author here - thanks! Yes, ES5 is a huge pain. However, I believe 5% of users (see other comment) are not a joke for many apps. There's always the question of minimum critical APIs required: If you build a 3D or webcam app you can forget ES5 altogether, of course. > It’s a lot like using polyfills when needed. Never thought of it this way, thanks for that! As is state in the conclusion, the study would likel…
As for ES5 support, would you consider using something like Babel to be close enough to using polyfills to consider them? Transpiling ES6 into ES5 fixes your compatibility issue with ES6 just like I would argue adding a polyfill for WebP images would.
Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#48Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#49Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#50Earlier quoted context omitted.
React has been stable since ~2015, and there are no signs of that changing.
Disagree; the "done thing" in React has shifted since then (moving from class-based components and HOCs to functional components and hooks), and in the wider ecosystem, Redux is being abandoned in favor of more React native things like Context. While React apps in 2015 probably still work with the newest versions of React, you can't put a 2015 React dev in a 2020 project and vice-versa as if nothing's changed.
Our app is still using Redux, so I guess that one hasn't hit us yet (but there's also no real reason for us to update to a newer method).