Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.world

8 replies

programming.dev

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

20

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

12
lemm.ee

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

10

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;
}
1

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

10

You reached the end

Found this beauty in one of my old projects from school | Spyke