Live data from Hacker News

Ask HN: What is the best JavaScript stack for a beginner to learn?

news.ycombinator.com

41–50 of 61 posts

Re: Ask HN: What is the best JavaScript stack for a beginner to learn?

#41

I have to strongly disagree with people proposing Ember. Several teams I work with, teams with very strong js and rails background, have tried it out and uniformly rejected it as being too restrictive, pointlessly baroque, monolithic, unstable, and with immature tooling (ember-cli in particular). I know a lot of people may disagree with that list but that is my experience and that of several people I respect. I'm not…

This has not been my experience at all. Ember-cli post 0.1.0 release has been very easy to work with and has helped me and my team get started using the Ember very quickly. We now have two Ember apps and have not looked back since!

Re: Ask HN: What is the best JavaScript stack for a beginner to learn?

#42

My 2c: stay away from any complex framework until you have a really good understanding of the language itself. Learn the DOM APIs with all it's drawbacks and bugs, DOM events, standalone browser APIs like Canvas, Audio, etc. Write simple node apps with express and modules whose sources you can read. Start using lightweight libraries like underscore / Backbone - you'll come to understand many of the issues that plague…

That sounds like the most boring possible way to learn webdev. Unless they're already a programmer, those things just aren't entertaining for most people. Making sure a beginner stays entertained is probably the most important goal, because people who get bored will give up before realizing their full potential. So if anyone's reading this and feeling bad that they don't feel like doing that, just dive in and do some…

I teach web development and find this statement to be most true. If you cant hold people's attention they wont learn a thing.

Re: Ask HN: What is the best JavaScript stack for a beginner to learn?

#43

My 2c: stay away from any complex framework until you have a really good understanding of the language itself. Learn the DOM APIs with all it's drawbacks and bugs, DOM events, standalone browser APIs like Canvas, Audio, etc. Write simple node apps with express and modules whose sources you can read. Start using lightweight libraries like underscore / Backbone - you'll come to understand many of the issues that plague…

That sounds like the most boring possible way to learn webdev. Unless they're already a programmer, those things just aren't entertaining for most people. Making sure a beginner stays entertained is probably the most important goal, because people who get bored will give up before realizing their full potential. So if anyone's reading this and feeling bad that they don't feel like doing that, just dive in and do some…

It's still [one of] the best way to acquire solid knowledge of a language (and then its frameworks). I agree that this might not be the funniest nor the quickest way, though.

But it's not that bad when you have someone behind you, helping you when really needed, and showing you what you can achieve afterwards.

Jumping into JQuery, copy/pasting snippets from google and such won't (well, not often anyway) bring novices very far. Plus, they'll have a hard time learning other frameworks if needed (new job, etc.).

Re: Ask HN: What is the best JavaScript stack for a beginner to learn?

#44
post #14

The phrase "Rails of javascript" doesn't make sense to me. What exactly is Rails...er...the "Rails of"? I'm assuming you mean something analogous to, "Rails is to full stack web-development as X is to JavaScript"...but that doesn't make any sense. Web development is a profession. JavaScript is a language. Maybe you're thinking that Rails is to back-end development as Something is to front-end development? But that do…

Rails is the "Rails of" Ruby. Rails is a framework. Ruby is a language.

In analogy form, I think his question is:

Ruby::Rails

Javascript::???

Re: Ask HN: What is the best JavaScript stack for a beginner to learn?

#45
Javascript is more "messy" because front-end is harder (on web) than backend.

The advice of learn "vanilla javascript" break if your targets (=browsers) are older than, lets say, THIS YEAR.

So, is the interest to do only "modern javascript" aka "this year release of browsers implementation of JS"? or "javascript as understood by, please not! internet explorer 6?".

So "vanilla javascript" is different depending in how much "modern" we are talking about. With truly recent JS, is possible to avoid jquery. If you are only in the server-side, Javascript IS == NODE.

So? No universal version (that could be retrofit to older devices) of JS exist on this earth (and the same apply to CSS3).

Think is like C/C++: The same bloat, pain as experience by the first users at the dawn of it, plus half-baked new shinny things, that are not universally used, and never equally across the board.

So, is very likely you need to learn "real vanilla javascript = as understood in the IE6 era, perhaps some versions up (if lucky) plus "jquery".

You can avoid jquery if use some kind of niche stack, but, jquery IS javascript as "everyone" use it. Think no only in raw use, but, interfacing with libraries and stuff. So, jquery is the "rails" of js, could be argued.

IF you actually have total control on the deployment environment, and on the use of external dependencies, you can SKIP JS and use coffescript, elm, typescript, etc. But you need to be very lucky to be in this position ;)

Re: Ask HN: What is the best JavaScript stack for a beginner to learn?

#47
Don't worry about the fads. Software always changes, there's no such things as a sure bet. It's more important to learn good technique, idiomatic javascript and "how to learn".

To dive in pick one with a lot of good documentation and a strong community. Pick a popular one and get to know it well, they all solve the same problem, so understanding the problem is more important. Take a look here, for an idea of popularity: http://libscore.com/data.html

If asked to make a call, I'd say Angular - it's massively popular and growing. It's on practically every interviewers list. And chances are, even if they break backwards compatibility, the community will fork and continue a 1.* branch.

Re: Ask HN: What is the best JavaScript stack for a beginner to learn?

#48

My 2c: stay away from any complex framework until you have a really good understanding of the language itself. Learn the DOM APIs with all it's drawbacks and bugs, DOM events, standalone browser APIs like Canvas, Audio, etc. Write simple node apps with express and modules whose sources you can read. Start using lightweight libraries like underscore / Backbone - you'll come to understand many of the issues that plague…

That sounds like the most boring possible way to learn webdev. Unless they're already a programmer, those things just aren't entertaining for most people. Making sure a beginner stays entertained is probably the most important goal, because people who get bored will give up before realizing their full potential. So if anyone's reading this and feeling bad that they don't feel like doing that, just dive in and do some…

I'd say there are ways to combine both approaches - develop userscripts. While you can do tricks to use other libraries, simpler userscript development is easiest with just vanilla JS. It's how I got into JS myself - I first fixed up an userscript I was using that no longer worked, and then I used that userscript as a base to start building a more complex thing. Eventually I ended up completely rewriting the thing from scratch (and I did the same for the original userscript I fixed that started it all). I've been actually thinking of giving it another rewrite one of these days, this time opting to build the thing with Browserify...

Re: Ask HN: What is the best JavaScript stack for a beginner to learn?

#49

My 2c: stay away from any complex framework until you have a really good understanding of the language itself. Learn the DOM APIs with all it's drawbacks and bugs, DOM events, standalone browser APIs like Canvas, Audio, etc. Write simple node apps with express and modules whose sources you can read. Start using lightweight libraries like underscore / Backbone - you'll come to understand many of the issues that plague…

There should be a project euler for web devs. What better way to learn js than to do 1-day (1-hour?) projects with a clear and specific focus on one concept or one browser API?

Example of first week complexity: make a choose-your-own-adventure player from a list of {id="sec01", text:"..", links:[{'Continue':'sec02'}, ]}s.

Second week: Wrap the chrome speech API[1] to produce a "game editor" for the above format.

Third week: make a youtube playlist editor that plays a list of time intervals from youtube videos: [{'tStart':0, 'tStop':451.3, 'url':'utube/URL'}, {..}, {..}, ... ]

It's just "toys," but they're immediately useful. In general I think ''file://localhost'' development of .js is a good place to start because of the immediate feedback---it either works or it doesn't.

@nielmalhotra One thing you can tell ur friend is that everyone is a beginner with the most of the modern APIs. So by reading the docs and trying things out he's already a "research level" web dev ;)

[1] http://www.google.com/intl/en/chrome/demos/speech.html

Re: Ask HN: What is the best JavaScript stack for a beginner to learn?

#50
If you're interested in the fun and pointless, I'd like to plug my own library for working with and playing timed event sequences: https://github.com/zachrose/barrel.

Using it to make something stupid definitely won't get you a job, but it's easy to using it will encourage you to use/learn about the cool parts of JavaScript.

Post reply on HN