this post was submitted on 14 Jun 2024
673 points (93.0% liked)

Programmer Humor

19623 readers
411 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 

Stop comparing programming languages

  • Python is versatile
  • JavaScript is powerful
  • Ruby is elegant
  • C is essential
  • C++
  • Java is robust
you are viewing a single comment's thread
view the rest of the comments
[–] SatouKazuma@programming.dev 83 points 5 months ago (6 children)

Mfw Rustaceans don't exist :(

Also, JavaScript...why are you the way you are? Does anyone have advice for learning it so it makes sense? I can't even get tutorial projects to run properly...

[–] davidgro@lemmy.world 55 points 5 months ago (1 children)

This meme is older than rust.

[–] polonius-rex@kbin.run 38 points 5 months ago (1 children)

actually it says 8h meaning it's only 8 hours old

[–] CanadaPlus@lemmy.sdf.org 23 points 5 months ago* (last edited 5 months ago) (1 children)

It will be 8 hours old forever.

[–] southernwolf@pawb.social 9 points 5 months ago

Forever young...

[–] polonius-rex@kbin.run 34 points 5 months ago (2 children)

use typescript and don't look too hard at the infrastructure

[–] dis_honestfamiliar@lemmy.world 12 points 5 months ago (1 children)
[–] activ8r@sh.itjust.works 13 points 5 months ago (1 children)

Last company I worked at used Typescript, but used any for everything... I have no idea why. I never got an actual answer.

[–] MostlyBlindGamer@rblind.com 16 points 5 months ago

Because they didn’t want to train their JS developers and didn’t want to cause friction for new projects. They get to say they’re using TS, with basically none of the real advantages. (Apart from general rational error checking.)

[–] frezik@midwest.social 6 points 5 months ago

I tried, but the infrastructure collapsed on me.

[–] MajorHavoc@programming.dev 18 points 5 months ago

The mantra that got me through JavaScript was "almost nothing we do here is able to be synchronous".

Everything about the language makes more sense, with that context.

[–] magic_lobster_party@kbin.run 17 points 5 months ago (1 children)

I like Douglas Crockford’s talks about the “good parts” of JavaScript. They’re old and probably a bit outdated, but he explain quite well the history and why JavaScript is the way like it is.

It clicked for me when I saw them the first time. Still hate JavaScript though.

[–] wreel@lemmy.sdf.org 10 points 5 months ago (1 children)

What Crockford did was enable a lot of devs to realize there was a viable development platform built into the most prolific and open network client in the world. For that he should be commended but it should have never been taken as "this is a viable general purpose language".

[–] magic_lobster_party@kbin.run 2 points 5 months ago

He also showed that JavaScript has more resemblance to functional programming languages rather than object oriented ones. If you try to treat it as an object oriented language like Java (like the seem to imply), you will have a bad time.

This has changed with TypeScript though.

[–] repungnant_canary@lemmy.world 4 points 5 months ago (1 children)

Can it even make sense tho? To me JS is an example of a not too good thing that people started too eagerly so now they're trying to make it make sense.

[–] SatouKazuma@programming.dev 1 points 5 months ago

I have no idea.

[–] marcos@lemmy.world 3 points 5 months ago

Start simple.

And that probably requires not going with a tutorial. Because the JS ecosystem scorns at "simple". Just make some HTML scaffold and use MDN to understand the DOM.