3 ms·
Some parts of web-dev are really chaotic right now, but other parts can be very well-organized, same as server-side code. For example, you need to compile all
by EugeneOZ 10y ago
Some parts of web-dev are really chaotic right now, but other parts can be very well-organized, same as server-side code.
For example, you need to compile all of your es6/es7/typescript code to JS (because nobody will write in pure ES5 nowadays), minify and concatenate resulting files - this part is very chaotic. But you need to touch it not so often.
You also need to write unit-tests. Tests itself will take 10% of their configuration code, it's very annoying also.
But when you'll write e2e tests, everything will be much more clean.
Main part, JS code (I recommend TypeScript) can be organized by same rules you use on the server.
Frameworks: Angular 2 is closer to Java enterprise apps (with all good and bad parts of it), React and jQuery are not frameworks and if your codebase is built on jQuery - bad news, it will be mostly spaghetti-code.