this post was submitted on 28 May 2024
302 points (84.0% liked)

Programmer Humor

18237 readers
1867 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
 

but stackoverflow how i fixy the brokey!

all 40 comments
sorted by: hot top controversial new old
[–] xmunk@sh.itjust.works 63 points 1 month ago (3 children)

Heh... but Javascript is so permissive you can just start writing psuedocode and it'll probably be valid!

[–] SzethFriendOfNimi@lemmy.world 24 points 1 month ago (1 children)
[–] Gork@lemm.ee 29 points 1 month ago (4 children)
[–] SzethFriendOfNimi@lemmy.world 16 points 1 month ago
for(i=0;i<100;i++){
    console.log("Yep")
}

console.log("uh-huh")
[–] Anticorp@lemmy.world 7 points 1 month ago* (last edited 1 month ago) (1 children)

Like Dave from Storage Wars?

[–] Anticorp@lemmy.world 6 points 1 month ago* (last edited 1 month ago)

const notThree = 1 + '2';

[–] CanadaPlus@lemmy.sdf.org 1 points 1 month ago (1 children)

And it will do... something.

[–] whodatdair@lemmy.blahaj.zone 1 points 1 month ago

Perhaps more than one thing, who can know?

[–] tiredofsametab@kbin.run 31 points 1 month ago (1 children)

People should be able to do this, at least for simple programs. We used to do it all the time.

[–] NatoBoram@lemm.ee 13 points 1 month ago

Everyone should be able to do a hello world without IDE

[–] teletext@reddthat.com 31 points 1 month ago

Sorry bro, if you think JavaScript is difficult, then you're just too weak.

[–] Alexstarfire@lemmy.world 29 points 1 month ago

Hello World isn't that difficult to write.

He never said it had to be a useful program.

[–] Anticorp@lemmy.world 29 points 1 month ago

NP, dude. As someone who learned JavaScript in the dark ages, when IE had to be a consideration for everything you did, writing a JS program now is trivial.

[–] ChaoticNeutralCzech@feddit.de 17 points 1 month ago* (last edited 1 month ago) (1 children)
[–] victorz@lemmy.world 35 points 1 month ago (2 children)

MDN ftw, screw stackoverflow.

[–] frezik@midwest.social 7 points 1 month ago (1 children)

MDN is better at everything than w3school, except for SEO.

[–] victorz@lemmy.world 3 points 1 month ago

Yeah... Then again I just use the DuckDuckGo bang !mdn and it searches MDN directly.

There's also devdocs.io which can be indispensable when using a lot of popular utility libraries and frameworks in the same project. Just having a single page with all the relevant docs is just a real blessing.

[–] Redkey@programming.dev 3 points 1 month ago (1 children)

Any time I need to learn something about JS, I go to W3Schools to wrap my head around the basics, then over to MDN for current best practice.

[–] victorz@lemmy.world 2 points 1 month ago

I remember visiting W3S like 10-15 years ago when first learning DOM manipulation etc at uni. But nowadays there's nothing it can give me that MDN can't, that I need to know.

[–] kakes@sh.itjust.works 16 points 1 month ago

I think I'd be okay up until you pulled intellisense, at which point I would literally deflate like a balloon.

[–] Thcdenton@lemmy.world 15 points 1 month ago

Dude JS is ez cmon.

[–] PhlubbaDubba@lemm.ee 10 points 1 month ago* (last edited 1 month ago)

"Every time you try to run your code the pendulum will drop lower until...."

Extremely loud crash as pendulum is rocketed into the ground by all the failed run attempts

[–] Johanno@feddit.de 8 points 1 month ago (1 children)

Var x = 1+"two"

Console.Log(x)

Done! I did it. I wrote a program.

[–] NaiveBayesian@programming.dev 5 points 1 month ago (2 children)

Not gonna run with those capital letters

[–] Johanno@feddit.de 2 points 1 month ago

It was never specified to run without errors.

[–] 0000@lemmy.world 2 points 1 month ago
console.log("You had one job.");
[–] magi@lemmy.blahaj.zone 5 points 1 month ago

Do people not read books anymore?

hello world (: (smiley being the wrong way was on purpose)

[–] samus12345@lemmy.world 4 points 1 month ago (1 children)

He got so upset he put on glasses and grew facial hair!

[–] nifty@lemmy.world 3 points 1 month ago

Because that’s how long he’s been trying to solve it

[–] RandomVideos@programming.dev 2 points 1 month ago

Just used he internet archive to open stackoverflow

[–] olafurp@lemmy.world 2 points 1 month ago

var a = 0

Done

[–] Kolanaki@yiffit.net 2 points 1 month ago

Ok... He didn't say it had to be complicated or anything. Just make a magic 8 ball.

[–] blek@programming.dev 1 points 3 weeks ago

hey, an empty file is also a valid program. it does nothing. (like me :p)

[–] victorz@lemmy.world -5 points 1 month ago

Learn JavaScript. It's a pretty good language. 👍