Live data from Hacker News

A book series on JavaScript

github.com

91–100 of 111 posts

Re: A book series on JavaScript

#91
Glad this was posted and especially glad for the feedback in the comments. Lately I've been learning by working through hands-on challenges with FreeCodeCamp.com. I'm ready for a deeper look and these books seem to fit the bill.

Off topic, the author implements more metadata in his html than I usually see. Check the source of his site http://getify.me/. Sort of a linked data approach.

Re: A book series on JavaScript

#92
post #44
post #42

Earlier quoted context omitted.

Actually, Simpson in his "you don't know JS" series of books makes a statement against "Javascript: the good parts". The main argument is that it's actually "Javascript: the easy parts". So crockford basically says "Just don't use the things most people find confusing when starting with JS". Instead, Simpson argues it's better to understand the language thoroughly so you can use all of its features to your advantage.

I believe the truth lies somewhere in between. You will have a really rough time programming JS with the good parts only, but you will also have a rough time annoying your colleagues when you are the only one using "this" in a place where it's considered a bug by most people.

@davnn you said it well. Most of the Javascript "Bad Reputation all these years" comes from the Language designed 20 years ago and did not change much mainly due to the fact that it is linked to ALL Browser vendor support at the SAME TIME ( to make any webpage JS to work). Assume a senario like where Ruby/Python could not change for last 20 years from their version 0.5

Now with ES6 and Babel Translator everybody can write ES6 code ( with out OLD JS BAD parts ) and enjoy JS as a true high level language like Ruby/Python . http://es6-features.org/#ClassInheritance

http://es6-features.org/#ClassInheritance

Re: A book series on JavaScript

#93
post #53

I've been writing JS a long long time and my strategy has been to never learn the intricacies of 'this', or the other bad neighborhoods of that language (but especially 'this'). I just avoid those neighborhoods. I write functions at the top level, keep all the signatures explicit, and enjoy the things in the language that are straightforward. Once every couple years or so something comes up that forces me to dip a to…

@dang now with ES6 and Babel translator , you do not have to worry about OLD JS quirks. Happily write code in ES6 and let the Babel Translator do the hard work . Easy learn of ES6 https://t.co/w1YYARnEnO

Re: A book series on JavaScript

#94
post #59

Earlier quoted context omitted.

What intricacies are you referring to? I feel like I wouldn't get very far without knowing at least certain things about "this". For example how to to use bind, call, apply. Or rather certain things would be more tedious.

Mostly all the thisness (including bind, call, apply—but especially bind) and anything prototype-related. There may be others, but I've succeeded in forgetting them!

[deleted]

Re: A book series on JavaScript

#96
post #53

I've been writing JS a long long time and my strategy has been to never learn the intricacies of 'this', or the other bad neighborhoods of that language (but especially 'this'). I just avoid those neighborhoods. I write functions at the top level, keep all the signatures explicit, and enjoy the things in the language that are straightforward. Once every couple years or so something comes up that forces me to dip a to…

But I guess it helps to know what to avoid and to have a general idea why to avoid it.

Re: A book series on JavaScript

#98

Earlier quoted context omitted.

This is too true. I've had a software engineer complain to me at how unfair his last interview was because they asked "esoteric javascript" questions in a front-end javascript development position. I asked him what questions he found tricky and a lot of them are really simple javascript 'things' (scopes, closure, iife, etc) that would come up sooner or later when you're working with the language

I think there is still a lingering mentality that you don't have to be an expert with JS to do front end work, and that's just not the case anymore.

Who are you people that think you need to be an expert in everything in order to do something? Nowadays you can work with 50 different languages/libraries/frameworks etc at any given time. You think, unless if you have no life outside of work, that everyone can be an expert in everything? Do you like to stroke your own ego that maybe you know more than someone else? I just don't get it. We just completed a SPA without anyone being a JavaScript expert; we are all back-end developers. However, we asked questions, researched, etc and we put together a damn good product.

Re: A book series on JavaScript

#99
Just reading through the first few chapters of the book on the `this` keyword (which, as an aside, is shocking to see that the feature is so confusing that it merits its own entire book), the code snippets could use some serious attention.

The variables are all `foo`, `bar`, `baz`, `a`, `obj`, etc. And the values are all just numbers. Sometimes they have a function that takes a value `a`, and they just do `this.a = a`. It requires a ton of cognitive strain to glean out what they're trying to show you in the examples because of this.

IMO the best books are those where they use silly (possibly contrived) "sample program" that the examples all build on. I mean, you could make your classes Cows and Animals, your functions moo's, your properties things like name and favoriteColor, and things can suddenly be a lot more readable when you want to do something like show lexical scoping rules. ("Oh no, that cow's name is steve, when you may have expected it to be bob because of the difference in what `this` refers to" is a lot easier in my mind than a big see of `foo`'s and `bar`'s.) Or maybe an example involving a bank and deposits and withdrawals.

It seems like a minor nitpick but it's things like these that I really use to judge whether a book is actually of good quality. I mean sure, any half-decent programming book exposes you the concepts that make you a better developer, but the good ones do so in a manner that makes it easy to understand.

Re: A book series on JavaScript

#100
post #6

I can highly recommend these books. They're one of the only books that do a real deep-dive into the language. I often have to interview people for javascript jobs. It's astonishing how few of them actually get how the `this` keyword, closures, prototypes etc work. So the title of the series may be arrogant, but not wrong.

The problem is that there are a lot of developers who have obtained an 'expert' level understanding of some corner of software development who then wrongly gain the perception that that understanding is both necessary and reasonably expected among the general population of developers. It's not far away from interviewing an English teacher in Japan and expecting them to understand Latin because "latin is the foundatio…

I honestly think it is just the demographic HN attracts. A bunch of egotistic individuals that are hated by their co-workers.
Post reply on HN