this post was submitted on 29 Jun 2023
39 points (86.8% liked)

Programmer Humor

19598 readers
674 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
 

top 11 comments
sorted by: hot top controversial new old
[–] [email protected] 14 points 1 year ago (1 children)
function {
}

Is for cheaters who want to squeeze as much code as possible onto one screen.

[–] zygo_histo_morpheus 1 points 1 year ago (1 children)

only good thing about javascript is that it forces people to put the squiggly brackets on the right

[–] bcrussin_dev 2 points 1 year ago (1 children)

I thought you could put curly brackets on a new line in js? Although I know when returning an object it has to be on the same line… fuck JavaScript man

[–] zygo_histo_morpheus 1 points 1 year ago

Exactly, your options are either mixing curly brackets or putting them all on the right and most people aren't crazy enough to mix then

[–] [email protected] 8 points 1 year ago (1 children)
function {
}

but

method
{
}

Don't ask me why.

[–] [email protected] 7 points 1 year ago (1 children)
[–] msage 2 points 1 year ago (1 children)
[–] silas 1 points 1 year ago (1 children)
[–] msage 1 points 1 year ago

Damn it Carl!

[–] [email protected] 5 points 1 year ago* (last edited 1 year ago)

This image is cursed!!

[–] [email protected] 1 points 1 year ago

I'm sorry, are you saying you indent the braces? Cause if that's not unintentional, those are both horrifying!

load more comments
view more: next ›