10
function {} (lemmy.world)

top 7 comments
sorted by: hot top controversial new old
[-] CoderKat@kbin.social 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!

[-] Bjoern_Tantau@feddit.de 1 points 1 year ago
function {
}

but

method
{
}

Don't ask me why.

[-] Grishaix@feddit.de 1 points 1 year ago
function {
}

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

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

[-] bcrussin_dev@programming.dev 1 points 1 year ago

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

[-] snake_case@feddit.uk 1 points 1 year ago* (last edited 1 year ago)

This image is cursed!!

this post was submitted on 29 Jun 2023
10 points (100.0% liked)

Programmer Humor

19190 readers
1127 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