r/programmingcirclejerk • • 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
21 Upvotes

32 comments sorted by

34

u/StallmanTheLeft Apr 09 '19

Is this because most people never learn any javascript?

11

u/[deleted] Apr 09 '19

I bought a book called Javascript, the Good Parts but it didn't have any pages.

5

u/ijauradunbi Apr 09 '19

Wrong. Because everything will merge into javascript. Check mate ethiast!

24

u/ArmoredPancake Gets shit done™ Apr 09 '19

I don’t think we need to “fix” types in JS (like TypeScript or Flow), I think we just need to understand them better and more clearly communicate our types in JS.

I don't think we need to "cure" cancer, I think we just need to understand it better and more clearly live with it.

19

u/lazarljubenovic log10(x) programmer Apr 09 '19

/uj

As soon as someone disses TypeScript because it's "overcomplicated and brings mental overhead" I immediately invalidate all his other dev-related opinions. I just can't take you seriously. Who in their right mind wouldn't want a static type checking tool, especially when TS is very intuitive yet pretty powerful.

I understand that building languages over languages is not the ultimate solution, but realistically ditching JavaScript from browsers simply won't happen ever, so TS is the next best thing. When we get a different way of using the internet, hopefully the nightmare will end and we'll get something sane.

14

u/terserterseness Apr 09 '19

/uj

The new CTO in a company I helped get investment, told me yesterday that anything type related into JS (including Typescript, and to be honest, why use Typescript; many other languages compile to JS and have types Ocaml, Haskell, Idris, C#, F#, Purescript .. and probably a 1000 others?) will be a step backward because the reason you can find so many cheap and young coders that are willing to churn out like maniacs weighs up against the bugs. At least you are 80% done already and a 'smart guy' (as he put it) will be able to fix that 20% much faster than write the 100% himself.

I think this invest might not pan out.

8

u/[deleted] Apr 09 '19

But M$ tho

7

u/heavyish_things Apr 09 '19

/youdidn'tclosetheujanyway

If you have type errors it's because you're doing something you shouldn't be doing. The 'mental overhead' is just what would have been future bugs slapping you in the face

6

u/ArmoredPancake Gets shit done™ Apr 09 '19

JS 10xers write cououde without bugs, silly.

7

u/DC2SEA DO NOT USE THIS FLAIR, ASSHOLE Apr 10 '19

As soon as someone disses TypeScript because it's "overcomplicated and brings mental overhead" I immediately invalidate all his other dev-related opinions.

TypeScript is overcomplicated and brings mental overhead.

Rust is the only moral choice.

Checkmate, 1xer.

6

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

If you're reading this, the original post got nuked by Redact. I use it to automatically purge my digital footprint from social networks, people search sites and messaging apps.

bike meeting tie price groovy edge silky modern aspiring desert

3

u/defunkydrummer Lisp 3-0 Rust Apr 09 '19 edited Apr 09 '19

Who in their right mind wouldn't want a static type checking tool

only 1xers worry about type errors.

4

u/lazarljubenovic log10(x) programmer Apr 09 '19

Erm, excuse me? Is your language even turning completely like CSS?

7

u/[deleted] Apr 09 '19
transform: rotate(360deg);

Checkmate, Guido!

→ More replies (2)

5

u/defunkydrummer Lisp 3-0 Rust Apr 09 '19

Erm, excuse me? Is your language even turning completely like CSS?

yes, it can turn completely.

BTW, only 1xers worry about tyoe errors.

2

u/ijauradunbi Apr 09 '19

Well, why would you use typescript when there's typescript and ghcjs compiler? The latters are objectively superior compared to a frankenlanguage like ts.

2

u/[deleted] Apr 09 '19

disses TypeScript because it's "overcomplicated and brings mental overhead"

I diss it because it's a stinking heresy that reeks of Jabba you filthy kaffur.

Who in their right mind wouldn't want a static type checking tool

Only quiche eaters need IDEs to hand hold them.

especially when TS is very intuitive yet pretty powerful.

Lol very powerful

2

u/lazarljubenovic log10(x) programmer Apr 09 '19

export type Function9<A, B, C, D, E, F, G, H, I, J> = (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I) => J

ITS OVER 9000

3

u/lru_skil Apr 09 '19

As soon as someone disses TypeScript Haskal because it's "overcomplicated and brings mental overhead" I immediately invalidate all his their other dev-related opinions. I just can't take you seriously. Who in their right mind wouldn't want a static type checking tool sane language, especially when Haskal is very intuitive yet pretty powerful.

4

u/[deleted] Apr 09 '19

This but unironically

7

u/isthistechsupport What part of ∀f ∃g (f (x,y) = (g x) y) did you not understand? Apr 09 '19

This but unemployed

→ More replies (2)

2

u/elschaap Apr 10 '19

everyone knows the cure for cancer is likes and awareness

14

u/lru_skil Apr 09 '19

> In my opinion, JS’s type system is actually wonderfully powerful and actually well designed.

Everything else after this sentence must be treated with suspicion. Actually.

9

u/lol-no-monads welcome to the conversation. Apr 09 '19

Good to see you're now leading a happier and more fulfilling life.

5

u/basyt Apr 10 '19

aww, let him bask in his moment of glory

4

u/[deleted] Apr 09 '19

weird flex but okay

also lol unironic spambot jerk

0

u/[deleted] Apr 09 '19

[deleted]

10

u/lru_skil Apr 09 '19

Unsafe type coercion is a feature. Languages that enforce strict equality are burdening themselves with unnecessary abstraction. Javascript doesn't need sensible equality and strict coercion because it makes code simple and easier to maintain.

6

u/lazarljubenovic log10(x) programmer Apr 09 '19

/uj

The problem is that I can totally imagine a dev.to article posting this but unironically, and getting hundreds of those unicorn shits.