59
submitted 8 months ago by [email protected] to c/[email protected]
all 11 comments
sorted by: hot top new old
[-] [email protected] 20 points 8 months ago

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

[-] [email protected] 12 points 8 months ago

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

[-] [email protected] 11 points 8 months ago

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

[-] [email protected] 11 points 8 months ago

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

[-] [email protected] 10 points 8 months ago

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

[-] [email protected] 5 points 8 months ago

The best code has the fewest lines.

[-] [email protected] 1 points 6 months ago* (last edited 6 months 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
59 points (95.4% liked)

Programming Horror

2147 readers
1 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 @[email protected]

Rules

Credits

founded 2 years ago
MODERATORS