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

Programmer Humor

19623 readers
1878 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 64 points 5 months ago (3 children)

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

[–] [email protected] 24 points 5 months ago (1 children)
[–] [email protected] 29 points 5 months ago (4 children)
[–] [email protected] 17 points 5 months ago
for(i=0;i<100;i++){
    console.log("Yep")
}

console.log("uh-huh")
[–] [email protected] 7 points 5 months ago* (last edited 5 months ago) (1 children)

Like Dave from Storage Wars?

[–] jubilationtcornpone 3 points 5 months ago
[–] [email protected] 6 points 5 months ago* (last edited 5 months ago)

const notThree = 1 + '2';

[–] [email protected] 6 points 5 months ago (1 children)

And it will do... something.

[–] [email protected] 2 points 5 months ago

Perhaps more than one thing, who can know?

[–] [email protected] 32 points 5 months ago (1 children)

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

[–] [email protected] 14 points 5 months ago

Everyone should be able to do a hello world without IDE

[–] [email protected] 31 points 5 months ago

Hello World isn't that difficult to write.

He never said it had to be a useful program.

[–] [email protected] 31 points 5 months ago

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

[–] [email protected] 28 points 5 months 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.

[–] [email protected] 17 points 5 months ago* (last edited 5 months ago) (1 children)
[–] [email protected] 35 points 5 months ago (2 children)

MDN ftw, screw stackoverflow.

[–] [email protected] 7 points 5 months ago (1 children)

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

[–] [email protected] 3 points 5 months 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.

[–] [email protected] 3 points 5 months 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.

[–] [email protected] 2 points 5 months 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 16 points 5 months ago

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

[–] [email protected] 15 points 5 months ago

Dude JS is ez cmon.

[–] [email protected] 10 points 5 months ago* (last edited 5 months 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

[–] [email protected] 8 points 5 months ago (1 children)

Var x = 1+"two"

Console.Log(x)

Done! I did it. I wrote a program.

[–] [email protected] 6 points 5 months ago (2 children)

Not gonna run with those capital letters

[–] [email protected] 3 points 5 months ago

It was never specified to run without errors.

[–] [email protected] 2 points 5 months ago
console.log("You had one job.");
[–] [email protected] 4 points 5 months ago

Do people not read books anymore?

[–] [email protected] 4 points 5 months ago

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

[–] [email protected] 4 points 5 months ago (1 children)

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

[–] [email protected] 3 points 5 months ago

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

[–] [email protected] 3 points 5 months ago

var a = 0

Done

[–] [email protected] 2 points 5 months ago

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

[–] [email protected] 2 points 5 months ago

Just used he internet archive to open stackoverflow

[–] [email protected] 1 points 5 months ago

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