r/vuejs • • Apr 09 '19

Kyle Simpson: I’ve Forgotten More JavaScript Than Most People Ever Learn

https://medium.com/@amsterdamjs/kyle-simpson-ive-forgotten-more-javascript-than-most-people-ever-learn-3bddc6c13e93
9 Upvotes

24 comments sorted by

33

u/graveRobbins Apr 09 '19 edited Apr 09 '19

That guy is pretty arrogant. In one of his front end masters videos he likens his YouTube videos to "The MIT of Front-End Design". But then again, anyone who puts themselves out there like that has to be full of themselves. I personally liken him to "The Comic Book Guy of Front End Design"

12

u/[deleted] Apr 09 '19

His book series, You Don't Know JS, is available online free to read, so he's not that bad!

5

u/p13t3rm Apr 09 '19

Hahaha. Had to re-read the original post title in that voice. Very fitting.

1

u/Mael5trom Apr 10 '19

He really is not that arrogant, I think people mistake confidence in his knowledge about JS with arrogance sometimes. In interactions I’ve had with him, as well as his books and courses, I’ve always seen him as fairly down to earth, despite this rather unfortunate quote.

Between his courses and books (which he puts out the for free also), he’s helped a ton of people learn JS better. That should be applauded, not derided.

20

u/gabriel-et-al Apr 09 '19

This

I feel powerless contemplating writing software in other languages, like I wouldn’t even know where to begin.

is so embarassing.

0

u/[deleted] Apr 09 '19

[deleted]

3

u/[deleted] Apr 09 '19

I agree that he is super arrogant and too in-love with JS, but aside from the "will ever" part do you disagree with that statement?

1

u/bwainfweeze Apr 09 '19

Web assembly is the petard on which he will be hoisted soon enough.

3

u/[deleted] Apr 09 '19 edited Apr 09 '19

WebAssembly has never been intended for replacing JavaScript in the browser. I mean, the only way that WebAssembly would replace JavaScript entirely in the browser is if Wasm + WebGL could somehow produce a better pattern for building responsive web applications than the actual tools that have been designed to do it (I use this term loosely bc by no means do I believe that the DOM is perfect). And what for? I'm not nearly as gung ho about JS as Kyle but what other language and paradigm out there produces a better UI-building experience than JS right now? That is a genuine question and I'd love to research such platforms.

As a matter of fact I think WASM only augments and enhances JS as a platform for building applications because now you have a way of performing heavy computation very quickly in your JS apps right in the browser.

1

u/gabriel-et-al Apr 13 '19

aside from the "will ever" part do you disagree with that statement?

What makes JS so widely used is the fact its virtual machine (aka web browser) is widely used. This has nothing to do with JS itself.

1

u/[deleted] Apr 13 '19

No arguments with that. That's what makes any programming language widely used. See: Java + JVM.

1

u/[deleted] Apr 10 '19

C, c++ both are more universal that Jabbashit. They underpin the browsers this overgrown sandbox toddler "devewops" in.

9

u/_3psilon_ Apr 09 '19

For example, completely contrary to most common belief, the == operator is actually more powerful and more useful in our programs than ===, and in fact, usage of == should be preferred and === should only be a last option.

I read his books, but statements like this are still just opinion and not fact.

He's incredibly detailed and elaborate in his books, but on the other side this often comes out as opinionatedness and nitpicking.

A good example is, just because now I know how prototype-based object "inheritance" (OLOO, objects linked to other objects) works - thanks to him - I still haven't adopted it and use class syntax. Why?

  • Classes are prevalent and known by everyone. Even if in JS they work differently in the background, as long as they do their job as expected, no one gives a fuck.

  • Classes, especially in TS are pretty static, type-checked etc - hard to mess up dynamically which decreases chances of bugs.

  • You see a lot more examples of class syntax than OLOO in the community: books, blogs, and of course Stackoverflow.

But of course, he gained his fame because he is more of an opinionated evangelist type instead of just a boring language analyst.

6

u/MoTTs_ Apr 09 '19 edited Apr 09 '19

Classes are prevalent and known by everyone. Even if in JS they work differently in the background

Not only is Kyle opinionated about classes, but his opinions are rooted in a false premise. Classes have been implemented in a variety of ways across the various languages, and the implementation of JS classes actually has a lot of similarities with Python's or Ruby's classes. In those languages, too, classes are objects and inheritance is done by delegation. Python and JS classes side-by-side.

3

u/IamTheFreshmaker Apr 09 '19

Eh there is a time I would have argued with you about the needless crap that comes with Classing up a language that actually dealt with Class like behavior in a much simpler (in both usage and explanation) way and that just because people have decided over time to force the language in that direction 'because more people were dogmatically [sic] trained' in the Class idiom but I realized that it' s fruitless because the 'CS Degree' legion is large and will just impose their will instead of thinking.

Hey here's another idea- let's strongly type a dynamic scripting language... jeeeszus.

Still haven't ever used jQuery, classes or any pre-rolled useless 'state machines' yet- and doing fine. And that's why no real argument is forthcoming.

Javascript is fantastic because it lets you come at it however you want. Use == when you need it and === when you need it. Use classes if you need a crutch. Use revealing module pattern if you want to avoid the noise.

The only caveat- no jquery- ever.

2

u/_3psilon_ Apr 09 '19

'because more people were dogmatically [sic] trained'

It's not just dogmas, it's about common concepts (e.g. classes, inheritance, immutability, type-checking etc.) along several languages. Of course these tools (means to an end) can easily turn into dogmatism and evangelism. See also: religion. :)

Hey here's another idea- let's strongly type a dynamic scripting language... jeeeszus.

It's because of 2 reasons:

  • JS is used in all browsers for all purposes. You don't have a choice but to use JS when it comes to frontend. The language definitely needed the ES2015+ stuff. Once you're past "dynamic scripting" (stereotype: '90s, '00s animated websites :D) and manipulate critical customer data with asynchronous local storage & API operations, background syncing, offline functionalities etc., you might appreciate optional interfaces and types (it's all optional in TS).

  • Since Node.js, JS is also used in the backend. This way, you can use the same conventions, libraries, tools and actual TS API interfaces for both the frontend and the backend. It makes development less error-prone.

Here's a good article though that argues against TS. But it still concludes that for projects at a certain size or when using types optionally (i.e. not overusing them), it makes sense.

Use == when you need it and === when you need it.

Very simple: for me, either two values are equal or not. Implicit conversion may be good, but then I need to instantly know what's happening when e.g. I or my colleagues look at the code later. Implicit conversion is way less trivial than ===, and if you miss or misunderstand something, it may lead to errors. If I ever use == I usually drop in a comment to warn the future reader.

Use classes if you need a crutch. Use revealing module pattern if you want to avoid the noise.

I agree: no need to create a utility class with all static functions when you can just write actual functions and export them in an object.

I actually feel the same with Angular's dependency injection: why the fuss with DI if you can manage the whole thing with ES2015 exports, and maybe a few promises?

The only caveat- no jquery- ever.

JQ is mostly unnecessary if you're using any kind of frontend framework, fortunately :)

2

u/IamTheFreshmaker Apr 09 '19

If I ever use == I usually drop in a comment to warn the future reader.

Well this explains everything. You can't possibly be JS dev because every JS dev knows 'the code explains itself'.

/s

15

u/timedrepost Apr 09 '19

I guess that statement is technically true for any developer in any language.

-29

u/[deleted] Apr 09 '19

Thank you that added a lot to the discussion!

/s

20

u/[deleted] Apr 09 '19

I mean, shouldn't this just be on /r/Javascript? It's not specific to Vue

3

u/fyzbo Apr 09 '19

This should be top comment, I was excited to hear Kyle Simpson's take on VueJS, and very disappointed when it never came up.

4

u/sanjibukai Apr 09 '19

Seems interesting... (Don't yet read)

Really JS is turning well and I don't believe long time ago I would say that.

1

u/TheRealDrSarcasmo Apr 10 '19

And he's so humble about it! /s

Barf.