News for hackers. Stuff that matters.
Re:Master JavaScript Programming with 18 Open-Source Books by sotojuan on Friday March 03, 2017 @11:58AM (#13784185)
The only way to master JS is to read one or two books (YDKJS being one of them) and then actually program projects of increasing ambition while asking questions and reading docs.

I'll never understand the obsession with reading so many books and doing so many courses.

Re:Master JavaScript Programming with 18 Open-Source Books by indreklasn on Friday March 03, 2017 @12:09PM (#13784278)
Can confirm, I fell into this trap. Read books for about a year and realized I don't know shit and barely could code a hello world app. Then started actually applying those skills to hobby projects and learned 500x much more that way.
Re:Master JavaScript Programming with 18 Open-Source Books by matthewvincent on Friday March 03, 2017 @01:52PM (#13785142)
I'd say JS essential reading would be:

1. JavaScript the good parts - because classic

2. You don't know JS series - because depth

3. Functional JavaScript - because underscore

Then you're done. Go find a Node or front end framework tutorial and blast off from there. Build build build.

Re:Master JavaScript Programming with 18 Open-Source Books by ramblerman on Saturday March 04, 2017 @02:01AM (#13789713)
Save time and skip 1)

It's nice to know some historical context around this/hoisting. But it will come up in YDKJS too. Start your journey on ES6.

Re:Master JavaScript Programming with 18 Open-Source Books by Etheryte on Friday March 03, 2017 @12:49PM (#13784613)
No amount of books will ever replace rote practice and just doing the work.
Re:Master JavaScript Programming with 18 Open-Source Books by PTRFRLL on Friday March 03, 2017 @10:59AM (#13783709)
I'm a big fan of the online version of Eloquent JavaScript, it has inline code blocks that you can edit and run. Make's it really easy to test out a concept you just read about.

http://eloquentjavascript.net

Re:Master JavaScript Programming with 18 Open-Source Books by exodust on Friday March 03, 2017 @12:34PM (#13784474)
Nice. The inline code editor is very cool. Been looking to freshen up my JS knowledge so this is a good find.
Re:Master JavaScript Programming with 18 Open-Source Books by awjr on Friday March 03, 2017 @11:25AM (#13783926)
These days I find the most important thing to 'get under your belt' is how to think and design in a language and more importantly, in your chosen frameworks.

Learning a language is usually not too difficult. Getting to the point where you understand how to 'think' in that language can take months.

It's why, when exploring a new language I usually hunt out 'Designing in <framework>' or 'Writing components for <framework>' courses and books. It is the way you glue together an application that is key.

Re:Master JavaScript Programming with 18 Open-Source Books by dvcc on Friday March 03, 2017 @11:16AM (#13783853)
Do people really find language-specific books helpful in better understanding a programming language long-term? Without ever implementing something, I don't think my memory would hang on to some language feature for long.
Re:Master JavaScript Programming with 18 Open-Source Books by ng12 on Friday March 03, 2017 @12:14PM (#13784324)
This is why I love Big Nerd Ranch for learning mobile dev. All of their books are completely focused on building one or two projects from start to finish and teaching you things about the API, dev environment, and best practices as you go. Usually at the end of each chapter there's also a "why" which explains why you had to do the seemingly obscure thing you just did so you're not just copy-pasting code.
Re:Master JavaScript Programming with 18 Open-Source Books by always_good on Friday March 03, 2017 @11:20AM (#13783891)
Yeah, I rarely read books anymore aside from hunting down very specific knowledge. For example, I recently bought a PDF on using Netty since I find it hard to figure out from scratch.

But language books? I don't really see the value beyond the beginner level. Every a-ha moment for me comes from building something out of my comfort level and then reading other people's approach to the same sort of solution.

Re:Master JavaScript Programming with 18 Open-Source Books by dqv on Friday March 03, 2017 @11:41AM (#13784048)
The language-specific books have always been helpful in getting me to discern whether I'm making a syntax error or a logical error. When it comes to implementation, I lose interest very quickly if it's something that has already been done reasoning that I can just use someone else's implementation.

So this way, I "fill in the blanks" with what I want to implement, knowing that an error or unexpected behavior is entirely my misunderstanding of the logic and not my misunderstanding of the language.

Re:Master JavaScript Programming with 18 Open-Source Books by prophesi on Friday March 03, 2017 @12:04PM (#13784239)
The best ones are those that have projects at the end of each chapter that incorporate what you've just learned. But yeah, I feel that books are mainly just for jumpstarting into a language, and don't help terribly much in the long-term. It can help with solving problems in the most sensible way for the language, but otherwise it's best to just hammer on a project.
Re:Master JavaScript Programming with 18 Open-Source Books by _agdistis on Friday March 03, 2017 @11:44AM (#13784072)
I like to read language-specific books initially to ramp up quickly. Though, my goal is to get to actually building something as fast as possible. The books just make it easy to quickly grab the basics.
Re:Master JavaScript Programming with 18 Open-Source Books by partycoder on Friday March 03, 2017 @11:56AM (#13784160)
The weakest spots in the JS code I have seen, in npm and the projects I've had to maintain:

- Profiling CPU and memory: preventing and mitigating resource leaks.

- Robustness: Input validation, error handling, logging.

- Event handling and construction of finite state machines: defining states and transitions and validating them.

- Using a sane coding standard. Like Google's JS standard rather than the self proclaimed "standard" from feross.

The "request" npm module for example, is a FSM where states are defined by a combination of flags. However you can obtain states that are not handled by the library, because the FSM is constructed poorly without validating state transitions. That is a very common theme in npm modules.

Re:Master JavaScript Programming with 18 Open-Source Books by epmatsw on Friday March 03, 2017 @11:07AM (#13783764)
You Don't Know JS's one on Async was the book that finally made the lightbulb go on for me with Promises. Can't recommend it enough.
Re:Master JavaScript Programming with 18 Open-Source Books by dagw on Friday March 03, 2017 @12:09PM (#13784280)
Learning JavaScript the language is trivial compared to learning JavaScript the eco system. I've currently started working on a project using Vue, webpack, babel and bunch of other tools I've never used before and I feel like I'm learning an entirely new language and 90% of the time my actual JavaScript knowledge is completely useless.
Re:Master JavaScript Programming with 18 Open-Source Books by abraves10001 on Friday March 03, 2017 @01:12PM (#13784782)
Completely agree. JavaScript is often on of the easiest parts of building front-end applications.
Re:Master JavaScript Programming with 18 Open-Source Books by mabynogy on Friday March 03, 2017 @12:01PM (#13784205)
My favorites are missing: http://exploringjs.com/

From Axel Rauschmayer: http://www.2ality.com/p/about.html

Re:Master JavaScript Programming with 18 Open-Source Books by rustico on Friday March 03, 2017 @01:11PM (#13784770)
Too many books. I think with 'Node.js Design Patterns' and the 'You Don't Know JS' series is more than enough.
Re:Master JavaScript Programming with 18 Open-Source Books by nzjrs on Friday March 03, 2017 @11:54AM (#13784140)
Only 18!?
Re:Master JavaScript Programming with 18 Open-Source Books by hackerboos on Friday March 03, 2017 @01:19PM (#13784845)
Don't worry. 15 of them overlap so you should be able to read them quickly.
Re:Master JavaScript Programming with 18 Open-Source Books by SeriousM on Friday March 03, 2017 @12:51PM (#13784624)
Yes, and that's just the basics!