r/shittyprogramming • • Apr 23 '19

Space efficient & lines up nicely

Post image
521 Upvotes

58 comments sorted by

View all comments

Show parent comment

3

u/[deleted] Apr 23 '19 edited Apr 23 '19

That's not verbose enough, I still can't read it. Try this: ^^^/s

function
f
(
    argument1
    ,
    argument2
)
{
    // start your code here
    
    // blank line between each line
}

1

u/[deleted] Apr 23 '19

That makes functions with a large quantity of arguments or verbose arguments more readable imo

Edit: except for having the function keyword and name on different lines you monster

3

u/[deleted] Apr 23 '19

It gets even better in Java (and other languages with stuff like this):

public
static
void
main
(
    string[]
    args
)
{
    
    // do whatever

}