Spyke

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

View original on lemmy.world

13 replies

feddit.de
function {
}

Is for cheaters who want to squeeze as much code as possible onto one screen.

14
programming.dev

I thought you could put curly brackets on a new line in js? Although I know when returning an object it has to be on the same line… fuck JavaScript man

2

Exactly, your options are either mixing curly brackets or putting them all on the right and most people aren't crazy enough to mix then

1
function()
{
    // code
}

forever because you never know how long the parameter list is going to be.

3

I'm sorry, are you saying you indent the braces? Cause if that's not unintentional, those are both horrifying!

2

You reached the end

function {} | Spyke