bigboismith@lemmy.world to Programming Horror@programming.dev · 2 years agoFound this beauty in one of my old projects from schoollemmy.worldimagemessage-square9linkfedilinkarrow-up15arrow-down10
arrow-up15arrow-down1imageFound this beauty in one of my old projects from schoollemmy.worldbigboismith@lemmy.world to Programming Horror@programming.dev · 2 years agomessage-square9linkfedilink
minus-squareSpicyLizards@reddthat.comlinkfedilinkarrow-up1·2 years agoThe best code has the fewest lines.
minus-squareHello Hotel@lemmy.worldlinkfedilinkEnglisharrow-up1·1 year agoThis 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; }
The best code has the fewest lines.
This is just as easy to write, just as sloppy but hopefully way easier to read.