bigboismith@lemmy.world to Programming Horror@programming.dev · 3 months agoFound this beauty in one of my old projects from schoollemmy.worldimagemessage-square9fedilinkarrow-up11
arrow-up11imageFound this beauty in one of my old projects from schoollemmy.worldbigboismith@lemmy.world to Programming Horror@programming.dev · 3 months agomessage-square9fedilink
minus-squareGBU_28@lemm.eelinkfedilinkEnglisharrow-up1·3 months agoI WILL NOT USE ANOTHER LINE. I DON’T NEED IT
minus-squareSpicyLizards@reddthat.comlinkfedilinkarrow-up1·3 months agoThe best code has the fewest lines.
minus-squareHello Hotel@lemmy.worldlinkfedilinkEnglisharrow-up1·edit-217 days 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; }
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.