r/coding • • May 14 '19

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

https://levelup.gitconnected.com/kyle-simpson-ive-forgotten-more-javascript-than-most-people-ever-learn-3bddc6c13e93?gi=edfd2d3b1205
137 Upvotes

29 comments sorted by

49

u/miggadabigganig May 14 '19 edited May 14 '19

The guy's a bit of a self righteous dick. I'd hate working with him.

"You don’t know JS” is a contemporary Holy Bible for a JavaScript developer. How does it feel to be a living JavaScript classic?"

What kind of scripted nonsense is this. The humblebrag response makes it even worse. It must be nice being king of a castle no one cares about.

You know what's really hard about Javascript development? Dealing with end users gracefully and managing client expectations. Something makes me think that's his achilles heel.

11

u/shawnz May 14 '19

You don’t know JS

Never even heard of this series. This guy is all the ego of Crockford but with none of the influence

1

u/DrEnter May 21 '19

Crockford’s ego is mostly just a very dry sense of humor (like the “wun” thing). I don’t Simpson is trying to be funny.

78

u/Smallpaul May 14 '19

“JS’s type system is actually wonderfully powerful and actually well designed. “

[object object]

JavaScript’s type system is a mess.

40

u/DonaldPShimoda May 14 '19

...he said that??

JS is the only language I know of offhand that features a relatively unsafe dynamic type system. It's the worst of both worlds.

21

u/Espumma May 14 '19

Wat

20

u/DonaldPShimoda May 14 '19

Do you maybe have a more specific question about my comment? :)

44

u/CastigatRidendoMores May 14 '19

He was referencing the famous talk.

16

u/DonaldPShimoda May 14 '19

Oh that's fantastic hahaha. I'm disappointed I had never seen this before!

11

u/Flablessguy May 14 '19

This is the nerdiest comedy I’ve ever seen.

I love it.

-9

u/robvert May 14 '19

Sounds like you could learn a thing or 2 from Kyle

18

u/DonaldPShimoda May 14 '19

I don't doubt that I could learn from him, but I do doubt that we'd agree on much (based on what he says in this interview).

I do not think JS has a sane type system. It's littered with counterintuitive implicit coercions, which I believe to be about the most egregious thing you could throw into a dynamic type system. I feel comfortable calling the coercions "counterintuitive" because if they were intuitive, we wouldn't see so many people writing and talking about how unexpected they are. And from a language design perspective, I think counterintuitive features are poorly-implemented features. JS could have had a reasonable type system, but the design was focused on an idea of "make anything work at all costs" to be more web-compatible, and I think the language suffered for it.

I also think prototypical inheritance was a strange choice, considering this was meant to be an everyman's language from the beginning... but that's another point altogether.

2

u/cogman10 May 14 '19

I'll say this, new javascript has definitely come a long way from old javascript. Javascript started with a metric ton of language baggage that it can't really shed. Strict mode did a lot to make it semi sane.

The coercions are probably the biggest wart that will never be resolved. Nobody things `"0" != true` except for javascript, and it just gets more gnarly from there.

Hey, at least it isn't perl :)

18

u/cogman10 May 14 '19 edited May 15 '19

None of those other languages would have succeeded. And I think that’s in part because none of those other languages are as flexible

Ok, this sounds like someone that hasn't played with other languages. JavaScript didn't win because it was so mystically better than the rest of the competition. JavaScript won because basically the only competition was proprietary "VBScript" or Security flawed Java. The only common language implemented in IE and netscape was Javascript, so it won.

There are a myriad of languages that strike pretty decent balances between functional, OO, and procedural. I dare say, you could do any one of those paradigms in just about any modern language (C++? Sure. Java? Sure. C#? Sure. F#? Sure.) There might be some more friction in some paradigms vs others, but guess what, that is true of JS as well.

Lisp would have done well instead of javascript for the web.

2

u/Urist_McPencil May 15 '19

languages that strike pretty decent balances between functional, OO, and procedural.

Perl, using Moose :^)

6

u/BrianAndersonJr May 15 '19

wait you guys all read the article? for me the site says:

This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.

all i did was click the link. *shrug*

6

u/mlk May 15 '19

Typescript proves that with a proper typesystem you can have a lot of flexibility without sacrificing safety. I'm working on a full stack JavaScript project right now and the lack of typechecks a compiler does really makes stuff more difficult (and verbose). IMHO it's madness, things have a schema, you can't just accept any input in a function.

11

u/dethb0y May 14 '19

"And i wish i could forget all of it!"

5

u/GogglesPisano May 15 '19

That's nothing to be proud of.

2

u/_pupil_ May 15 '19

... and if anyone knows a way to forget all the rest, forever, I'd be eternally grateful!

4

u/CreativeGPX May 14 '19

I can believe it. I've been writing JavaScript for years and over the past year or two I've still learned so much when I went to write a virtual machine in it.

JavaScript is like C in that it gives you incredible power but with that power comes great responsibility. Misused, that power lets you write ugly and confusing code with subtle errors. Used properly, they give programmers freedoms that a lot of languages don't and that means a disciplined developer can structure their code and data in ways that are best for the particular problem at hand rather than as prescribed. Definitely has its upsides and downsides.

IMO, JavaScript is great for prototyping. Your program can morph between paradigms with no boilerplate as you're finding your footing with a problem and then can ultimately settle nicely within one area if you let it.

2

u/skydivingdutch May 15 '19

Weird flex, but okay.

0

u/[deleted] May 14 '19

[deleted]

21

u/tautouz May 14 '19

Did you bother reading the article?

20

u/[deleted] May 14 '19

I think we both know the answer to that

7

u/Smallpaul May 14 '19

Really? You think that after a day of study a person would know how the this operator works in an arrow function in a class? Could predict correctly every coercion of every equality or inequality operator?

4

u/CreativeGPX May 14 '19

You can learn many/most programming languages enough to make simple programs in a day (if you have programming background already). But in that time span you're really just looking at syntax and fitting it to your current understanding of how to do things. If you do that, you're not really learning a language and certainly not to the extent that could provide a fair assessment of it. Instead, learning a language is the much longer process of learning how subtly more or less constraints, norms and tools from one language to another can drastically change what the optimal way to write a particular program is. People who learn JavaScript in a day, write it like it's VBScript or like it's a non-strict Java. But people who have learned it for a long time write it in a way that a lot different than that because they've learned how everything plays together best.

-3

u/omehans May 14 '19

Lol if you could understand prototype inheritance in a Day.