8 ms·
Can anyone recomand a “JavaScript for profesional programmers”? I.e. something that introduces JavaScript assuming you know a lot more about programming than y
by nottorp 6y ago
Can anyone recomand a “JavaScript for profesional programmers”?
I.e. something that introduces JavaScript assuming you know a lot more about programming than your average JS developer and explains the JS pitfalls in common terms and not js “ecosystem” inventions?
- Cthulhu_ 6y agoI have good experiences with Javascript Allongè, I know the author is on here as well. It builds up your understanding of the language from the basics, focusing on JS specific things like function scope and higher-order functions and `this`, without insulting your intelligence.
- sks147 6y agoI can also vouch for Javascript Allongè. It's a fantastic read.
- willcipriano 6y agoZed Shaw is coming out with a book[0] on the topic, I like his Learn X the Hard Way series so I'll probably pick it up when it arrives. [0]https://learncodethehardway.org/javascript/ https://learncodethehardway.org/javascript/
- doteka 6y agoZed Shaw is an idiot who was arguing that Python 3 is not turing complete not too long ago. His books contain plenty of terrible advice and should be avoided.
- ActionHank 6y agoTell us how you really feel.
- hombre_fatal 6y agoI miss the old days of Ruby, Mongrel, and Zed Shaw (and drama). Though I also think I took a liking to the guy when I decided he looked like Neal Stephenson.
- m12k 6y agoBooks that fit that description, and that I've heard good things about are JavaScript: The Good Parts (but maybe not quite up to date anymore?) and Eloquent JavaScript.
- IshKebab 6y agoMDN is by far the best resource on JavaScript. It's most a reference site but they have tutorials too: https://developer.mozilla.org/en-US/docs/Learn/JavaScript https://developer.mozilla.org/en-US/docs/Learn/JavaScript Maybe a bit too slow if you already know other languages, but you can at least trust it not to give bad advice. There are an absolute mountain of inexperienced JS developers out there giving a lot of bad advice. Take every StackOverflow answer with a fist full of salt. MDN is reliable though.
- nottorp 6y agoYeah, that’s the whole point. I don’t want to be told how a loop works in kindergarten terms. I want to know the memory and event model and be told in one line why JS has three equality operators. I want a concise list of types and automatic conversions. I want to know how Node’s multitasking differs from Windows 3.1, because my impression now is it doesn’t. Stuff like that, you get the idea.
- jwarren 6y agoAs a primarily frontend developer, I've had a couple of good experiences helping some experienced backend developers work through You Don't Know JS[0]. [0] https://github.com/getify/You-Dont-Know-JS https://github.com/getify/You-Dont-Know-JS
- harrygeez 6y agoMDN has a guide called "A re-introduction to JavaScript"[1]. I believe this is what you're looking for 1. https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re...
- LibertyBeta 6y agoI can second this recommendation. JS is an odd bugbeast in that it took some design shortcuts early in it's life that aren't really visible without this kind of "here are your primitives" review. It also works like any other language primer in that it doesn't go into needlessly specific domain bound examples. That kind of stuff should be in a stdlib-eqsue doc. A good read for even for some one like me, who slings JS almost daily.
- nottorp 6y agoThat's nice but just a start. JS type coercion is only mentioned in passing for example.
- vlunkr 6y agoI know JS is mocked for the horrible type coercion, but on a day-to-day basis I don't find myself needing to know how it works in detail. All you really need to know is that you should avoid it. Use triple equals and don't try to add or subtract non-matching types.
- hombre_fatal 6y agoIt specifically gives you an example of how "==" clearly sucks and shows you how "===" fixes it. I don't see why a "guide for professional programmers that know more than the average JS programmer" (as per the request) would need to belabor that any further.
- nottorp 6y agoSo what types are converted to what, automatically? And is it only for == or there are other traps? In most languages that I know this is documented. They don't tell you "this sucks don't use it".
- ramzis 6y agoI'd recommend doing an online course where you learn something useful like React and the ES6 syntax will come for free as you go along. I found Udemy to be quite useful. Otherwise, from a programmer's perspective, JS is like nothing else I've seen and it's not something you want to be using without an abstraction over it, i.e. some framework that makes life less miserable when building something more complex than a form. I feel like being a 'JS professional', unlike other languages, mostly involves in-depth knowledge of the right tools and not the language itself. Unless, you are interested in building frameworks yourself, which I personally find no need to ever do given the available options.
- rimliu 6y agoThis advice is so strange. Do you imply, that learning pure JS is not useful? I dread this attitude. Also, you cannot have "in depth" knowledge of any higher end abstraction whithout knowing the language. By definition it will always be just a superficial knowledge.
- ramzis 6y agoPure JS obviously has its uses but I am assuming every professional values productivity which one can't often obtain just by knowing JS itself. JS sometimes feels like assembly, you just don't want to touch it, that's why things like TypeScript exist, for example. Also, saying an abstraction is useless without knowing the language is similar to saying you can't drive a car without knowing how the timing belt or crankshaft works - most people do fine without either. I'm not dismissing the value of JS fluency, just suggesting that it might be unnecessary and a more practical approach can be taken.
- filleduchaos 6y ago> JS sometimes feels like assembly Every time I see this statement, I wonder what the Venn diagram of people who say so and people who have ever written a line of asm looks like.
- 6y ago
- m90 6y agoHow much or how little does "your average JS developer" exactly know according to your opinion?
- kabes 6y ago"You don't know js" book series is good for what you describe
- mattbee 6y agoThere's a new edition of the O'Reilly doorstop "Javascript: The Definitive Guide". I've learned a lot from it and started to use modules, promises and dropped all my horrible old 90s habits. It reads really well, explains the modern bits as the right way of programming, but also puts the crusty, abandoned bits into the right perspective (if you're looking at old code I guess). It's not at all a book for new programmers, but for someone who knows Ruby well, it's a great, concise read.
- solidist 6y agoJavaScript: The Good Parts by Douglas Crockford. Note that this was written in 2008 but still holds up well. https://www.amazon.com/JavaScript-Good-Parts-Douglas-Crockford/dp/0596517742 https://www.amazon.com/JavaScript-Good-Parts-Douglas-Crockfo... It may be a perfect time for a revision.
- throwanem 6y agoIt predates ES5, and a revision is imo long overdue. It was an excellent resource in its day, but there are a lot of good parts too new for it to have covered.
- gabrielsroka 6y ago"How JavaScript Works" by Crockford was published in 2018. https://www.amazon.com/gp/aw/d/1949815005/ref=dbs_a_w_dp_1949815005 https://www.amazon.com/gp/aw/d/1949815005/ref=dbs_a_w_dp_194... https://youtu.be/8oGCyfautKo https://youtu.be/8oGCyfautKo
- deleted 6y ago[deleted]
- ballenf 6y agoThe Good Parts by Crockford will always be on my list. It's dated in terms of language expansions, but it really will lay the foundation for many of the patterns that are now commonly used. Kyle Simpson's volumes are excellent. Eloquent Javascript The author's earlier ES6 book is great. Most of the above books have a few chapters you'll end up skimming or skipping.
- ralphc 6y agoI'm enjoying Manning Book's "The Joy of JavaScript", in early access but available. I'm currently reading about how mixins are done using JavaScript's unique features, and I'm looking forward to the function programming and algebraic data types.
- lowwave 6y agoDon't know about "Professional" However, if you want to go the LISP route in the tradition of The Little Schemer, then check out: The Little JavaScripter: https://www.crockford.com/little.html https://www.crockford.com/little.html
- lowwave 6y agoAlso in general even if programer don't end up using LISP type of language they get better by just learning it. And Javascript is decent stand in for LISP, as Crockford points out.
- nottorp 6y agoI actually know some LISP, among other things. I'm asking specifically about JS.
- greggman3 6y agoThat's cute but as someone that knows lisp if it doesn't support defmacro then it's not remotely lisp. That's where all the power of lisp is.
- kofejnik 6y agoAs for introduction, how about this: > ('b'+'a'+ +'a'+'a').toLowerCase() >'banana'
- kofejnik 6y agobut if we're being serious, "Learn X in Y minutes" is pretty efficient, and also Dan Abramov's email series (sign up on his site)
- hombre_fatal 6y agoDan Abramov makes good, super accessible material on any subject he focuses on. His React series is also good. Guy's a good egg.
- rauschma 6y ago(Just in case the title is putting you off: You are describing the goals of this book.)
- valbaca 6y agoI agree. Sounds like this is exactly the book they're looking for: "No prior knowledge of JavaScript is required, but you should know how to program."
- mokanfar 6y agoHaving read many programming books, I find at a professional level, you just want to get straight to the juicy stuff with real life examples. For that, Goal kicker is hands down my go to for that. While you're at it, also download the NodeJS ebook from there too. They're free. https://books.goalkicker.com/JavaScriptBook/ https://books.goalkicker.com/JavaScriptBook/ and https://books.goalkicker.com/NodeJSBook/ https://books.goalkicker.com/NodeJSBook/
- brogrammer2018 6y agoThank you for sharing
- valbaca 6y agoI'd consider Eloquent Javascript the best JS book out there and actually one of the best programming books I've ever read https://eloquentjavascript.net/ https://eloquentjavascript.net/ It may be a bit more introductory than you're looking for, but trust me in that you'll want to read it from front to back as it builds on itself. It's not short and quick, but it's comprehensive, good, and even fun!
- kccqzy 6y agoI recommend JavaScript: The Good Parts. It's pretty dated by now but still is a quick introduction to JavaScript for professionals. You can then read MDN for new features not covered by the book.