r/programming • • Sep 15 '16

Angular 2.0.0 officially released

https://www.npmjs.com/~angular
1.3k Upvotes

535 comments sorted by

View all comments

Show parent comments

26

u/timmyriddle Sep 15 '16

Tell me about it. I've been working in the frontend world for a few years now and sometimes it makes me want to throw my keyboard in the air, punch my monitor, push my desk over, head out to the countryside and live in a cabin in the woods.

You're absolutely right: most stuff is fluff that makes life "easier". I have to remind myself that 90% of the confusion in the frontend world is because of tooling. I don't need gulp, I don't need sass, I don't need frameworks. They just provide a means to an end: the choices I make in building a web application today probably won't be the same choices I will make next year.

Add in stuff like continuous integration, testing frameworks, deployment/orchestration tools, and it all gets too much. Ironically, once the tooling is taken out of the picture, things look decidedly easier.

Part of the problem is looking at other people's code and trying to follow what they were doing. I remember my face contorting into a tight frown when I'd be following a tutorial, head over to the repo and wonder why there were twelve different folders and a load of files with extensions I didn't recognise. I'm supposed to building a navbar, what's this .jscsrc thing?

Good advice I received early on was to focus on learning pure JS, not on the frameworks. Angular 1 was particularly bad because of its obtrusive syntax, it almost felt I was writing code in another language. I understand that 2 is much better.

More good advice I received was to pick a framework based on your best guess at the time and try to stick with it, don't fly around trying to learn them all. Each one has strengths and weaknesses, it's better to know all the nooks and crannies of one than to know broad strokes about a them all.

As regards keeping up with everything, my advice is don't bother. Learn JS, work out what tools work for you, and just keep up with the honoured list of components that make up your development environment.

If it's any consolation, I don't have a clue what I'm doing, and most people I talk to don't have a clue either. You C++ guys are a little scary because you seem to have it all worked out with your fancy ISO standards and working committee.

2

u/Labradoodles Sep 15 '16

I would say that the best way to go forward right now is get babel working and work purely in the new new of the Javascript language. There's so many features that are amazing and help manage complexity and ship smaller bundles of code.

I was writing shitty jQuery calendar logic and moved over to using ES 2015 and it was like suddenly everything was a bit easier and more straightforward. I wasn't importing full libs for tiny amounts of functionality and didn't have to roll my own which wasn't as useful.

But you are correct. At the end of the day whatever you decide make sure it's making things less complex not more.