News for hackers. Stuff that matters.
Re:Ask HN: What is the best way to learn JavaScript for a be... by santiagobasulto on Friday February 26, 2016 @07:03AM (#11180966)
Don't go after "learn javascript". Try to "learn to program" first. The only way to learn anything is BY DOING. You have to sit and code. Are you going to play great basketball just watching the NBA? NO! You have to go outside and play. In the world of coding that translates to: sit and code.

Online resources, there are many. Too many sometimes. Grab anything from codecadeamy, codeschool, or Tree House. But remember that's not the only thing you need to know.

If you check my profile, we do remote programming courses where people work together with a real teacher for 6 weeks. We offer scholarships (100% free).

Remember: * Focus on learning programming. What's the scope of a variable? what's immutability? etc. * Practice a lot. Code as much as you can. * Look up for a group to work together.

Re:Ask HN: What is the best way to learn JavaScript for a be... by maxblackwood on Friday February 26, 2016 @07:44AM (#11181070)
Eloquent Javascript. It's one of the best introductions to programming I've ever read. http://eloquentjavascript.net/
Re:Ask HN: What is the best way to learn JavaScript for a be... by codegeek on Friday February 26, 2016 @10:35AM (#11181874)
yes, I second this. Reading this book has always clarified core javascript to me. I go back to it all the time for reference.
Re:Ask HN: What is the best way to learn JavaScript for a be... by chatwinra on Friday February 26, 2016 @08:27AM (#11181218)
yes! this is a great book
Re:Ask HN: What is the best way to learn JavaScript for a be... by sebastianxx on Friday February 26, 2016 @08:02AM (#11181122)
Practice as much as you can. Write lots of code. Try to solve problems. Don't be afraid to reach out to people and ask questions. The best way to learn Javascript and programming is by doing it. JUST DO IT! As for books I'd recommend "Head First JavaScript". They're great for beginners. If you're comfortable with screencast try Learn Javascript in 14 days course on iLoveCoding and then move on to the lessons https://ilovecoding.org/lessons.

If you get stuck, ask questions on Stack Overflow or Reddit. Good luck

Re:Ask HN: What is the best way to learn JavaScript for a be... by random_coder on Friday February 26, 2016 @08:52AM (#11181319)
I find Mozilla's javascript guide[1] to be quite good for learning JS, if you have some programming experience.

1. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guid...

Re:Ask HN: What is the best way to learn JavaScript for a be... by chatwinra on Friday February 26, 2016 @08:30AM (#11181233)
I'd recommend a 3 pronged approach:

1. Read specific Javascript stuff (I'd also recommend Eloquent Javascript as others have). Code school free courses can help with the basics too.

2. Try and find someone who you can speak to from time to time about Javascript stuff. They can introduce you more advanced stuff (like Grunt/Gulp), which even if you can't understand it all, helps expand your horizons and show you what to look at when you're comfortable with the simple stuff.

3. Read about programming in general, because the principles apply to any programming language. I'd recommend Code Complete by Steve McConnell. It's a bit daunting but full of great stuff to make you think about your approach to programming.

good luck!

Re:Ask HN: What is the best way to learn JavaScript for a be... by peternicky on Monday February 29, 2016 @07:12PM (#11199842)
Great ideas!
Re:Ask HN: What is the best way to learn JavaScript for a be... by brudgers on Friday February 26, 2016 @09:31AM (#11181519)
There is a lot of good advice elsewhere. I'd recommend Norvig's essay:

http://norvig.com/21-days.html

The complexity of programming ramps up really fast from "Hello World" toward professional tools and techniques due to a massive permutation space and in the case of JavaScript comprehensive instability in best practice.

Good luck

Re:Ask HN: What is the best way to learn JavaScript for a be... by lollipop25 on Friday February 26, 2016 @06:46PM (#11185184)
"just do it"

JavaScript (or any programming language for that matter) cannot be learned by just reading. One must actually write with the language to get used to the language, as well as gain muscle memory for the syntax. Do something, even something very simple, like a console-based game (which is essentially just a state machine), or create your own pub-sub library (which deals alot with object and array manipulation), or recreate some data structure (binary tree, linked lists, rings, etc.). These simple exercises can go a long way.

These books help as well.

- JavaScript: The Definitive Guide

- High Performance JavaScript

Re:Ask HN: What is the best way to learn JavaScript for a be... by davismwfl on Friday February 26, 2016 @08:06AM (#11181143)
In the past, I bought some team members access to codeschool.com. The price is really fair and they have screencasts, course syllabus and tasks that help you learn whatever you are taking from them. I was pretty impressed, it worked well for Javascript and HTML/css and I'd have no problem subscribing again if there was a need. IIRC, it was a monthly price but was fairly inexpensive and we only had it like 6 months and then cancelled because they had gone through the courses they wanted.
Re:Ask HN: What is the best way to learn JavaScript for a be... by novicei on Friday February 26, 2016 @06:57PM (#11185248)
I recommend https://ilovecoding.org/ There are lots of awesome answers there, do read books and watch Javascript tutorials but don't just read or watch them. GO AND WRITE CODE. Don't procrastinate, just do it. You learn by doing it.
Re:Ask HN: What is the best way to learn JavaScript for a be... by k__ on Friday February 26, 2016 @09:11AM (#11181401)
If you programmed in other languages before, I would recommend "JavaScript the Good Parts" and "Pro JavaScript Techniques". Both were about the language itself and how to avoid a few ugly edge cases.

Disclaimer: I already knew C, Java, PHP and VisualBasic before I started with JavaScript .

Re:Ask HN: What is the best way to learn JavaScript for a be... by daniel27 on Friday February 26, 2016 @07:18AM (#11181003)
Re:Ask HN: What is the best way to learn JavaScript for a be... by theGREENsuit on Friday February 26, 2016 @09:01AM (#11181366)