bprogramming_horror·Programming Horrorbybigboismith Found this beauty in one of my old projects from schoolView original on lemmy.world61Comments8Reply
PPython programming.dev1Hide 1 replysmh, could have used the short form ()=>{ instead of function 😤20Reply
Deebster replyprogramming.devI've been coding long enough that I still think of that as a fairly new thing in JS.12Reply
PPoolloverNathan replyprogramming.devSomeone's handed me nested base-64 encoded JSON before and to this day I am moderately annoyed at them.6Reply
zzygo_histo_morpheus programming.devWhy settle on cammel case ("saveGame") or upper cammel case ("SaveGame") when you can have one of each?11Reply
Kissaki programming.devIn German we say "doppelt hält besser". Is there an English saying like that? "Twice is stronger/more stable/holds better."10Reply
Hello Hotel replylemmy.worldThis 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; } 1Reply
8 replies
smh, could have used the short form ()=>{ instead of function 😤
I've been coding long enough that I still think of that as a fairly new thing in JS.
Someone's handed me nested base-64 encoded JSON before and to this day I am moderately annoyed at them.
Why settle on cammel case ("
saveGame") or upper cammel case ("SaveGame") when you can have one of each?In German we say "doppelt hält besser". Is there an English saying like that? "Twice is stronger/more stable/holds better."
I WILL NOT USE ANOTHER LINE. I DON'T NEED IT
The best code has the fewest lines.
This is just as easy to write, just as sloppy but hopefully way easier to read.