60
all 11 comments
sorted by: hot top new old
[-] python@programming.dev 20 points 1 year ago

smh, could have used the short form ()=>{ instead of function 😤

[-] Deebster@programming.dev 12 points 1 year ago

I've been coding long enough that I still think of that as a fairly new thing in JS.

[-] Kissaki@programming.dev 11 points 1 year ago

In German we say "doppelt hält besser". Is there an English saying like that? "Twice is stronger/more stable/holds better."

Why settle on cammel case ("saveGame") or upper cammel case ("SaveGame") when you can have one of each?

[-] GBU_28@lemm.ee 10 points 1 year ago

I WILL NOT USE ANOTHER LINE. I DON'T NEED IT

[-] SpicyLizards@reddthat.com 5 points 1 year ago

The best code has the fewest lines.

[-] HelloHotel@lemmy.world 1 points 1 year ago* (last edited 1 year ago)

This is just as easy to write, just as sloppy but hopefully way easier to read.

Game.onload = (data)=>{
let a = data;
a = JSON.decode(a)["saveGame"][0];
a = JSON.decode(a)["SaveGame"];
return a;
}
this post was submitted on 15 Nov 2024
60 points (95.5% liked)

Programming Horror

2299 readers
2 users here now

Welcome to Programming Horror!

This is a place to share strange or terrible code you come across.

For more general memes about programming there's also Programmer Humor.

Looking for mods. If youre interested in moderating the community feel free to dm @Ategon@programming.dev

Rules

Credits

founded 2 years ago
MODERATORS