3 ms·
> Refactoring vanilla js is a nightmare. Interesting. I think if ES6 is properly used, thats good enough. At least with the sizes of projects I have worked on.
by agnivade 10y ago
> Refactoring vanilla js is a nightmare.
Interesting. I think if ES6 is properly used, thats good enough. At least with the sizes of projects I have worked on.
And I think the webpack is the single most awesome thing to happen for front end development. With webpack 2, things are just better than ever. With an overhauled doc site and good examples, its all of the good stuff.
- gibbitz 10y agoI guess since ES5 is the language spec I've used the longest, I find refactoring vanilla JS to be enjoyable since most frameworks exist to clean up ugliness. Many frameworks add boilerplate and foreign patterns that can make this difficult, though. When I run against this, however, I have to re-assess the value of the framework I'm adding and if it still exists, refactoring is not what's needed as much as a re-write. This is the primary reason for writing code that is modular on as many levels as possible. I worry about the React/Flux patterns at this point in that they are creating codebases where modularity is specific to their pattern which could be tomorrow's anti-pattern (Prototypejs anyone?). I suspect we'll be cursing refactoring these codebases soon.