News for hackers. Stuff that matters.
Re:Expand Your Programming Vocabulary (for Beginners) by iopq on Friday February 05, 2016 @05:51AM (#11040670)
OK, that Angular example triggered me. This is exactly why I couldn't make heads or tails of my Angular caching issue - because all answers on SO were like this.
Re:Expand Your Programming Vocabulary (for Beginners) by kidmenot on Friday February 05, 2016 @06:18AM (#11040763)
And indeed the Angular documentation does not help at all. It's awfully abstract, and I always had the impression it's trying its best to avoid telling you what you actually need to do in order to achieve X, for most values of X.

This kind of non-documentation, coupled with the fact that Angular is IMO overengineered, drives me crazy.

Re:Expand Your Programming Vocabulary (for Beginners) by k__ on Friday February 05, 2016 @06:32AM (#11040795)
That's why it's always a good idea to look into other frameworks and languages :)

I had to do some Java stuff in university so I knew the concept of dependency injection. But in JavaScript it isn't used that often.

Probably because "classes" are simply functions there and you can store a function in a variable and pass it around without thinking about its "real" name, which already decouples things quite nicely.

Re:Expand Your Programming Vocabulary (for Beginners) by uremog on Friday February 05, 2016 @11:45AM (#11042584)
Honestly, I find the official Angular documentation useless until I already know what I want from it and just refer to it as a refresher.
Re:Expand Your Programming Vocabulary (for Beginners) by fishanz on Saturday February 06, 2016 @09:54PM (#11051332)
Google's documentation is pretty bad across the board I find, not just NG (I won't mention FB's).