You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alright, I'm not formally schooled, but I do code 12+ hours a day, some for work and some for pleasure, so I'm all about moving things forward. Those pretenses aside, I think there needs to be a parenthesis terminator so that when changing code that utilizes a space such as we change Math.max 2, parseFloat '123.456' to Math.max 2, parseFloat('123.456'), 999, we need not enter code into 2 places(one to replace the space and once more). Enter parenthesis terminator.
Math.max 2, parseFloat '123.456' ☻, 999
I'm up for debate on what character to use, but smiley face seems like a good ambassador. Having a character to end parenthesis means we can make a change involving closing parenthesis in 1 insertion. Constantly moving forward. Adding new code and refactoring old code are one in the same, but it seems redundant to have to go back to go forward in simple situations as this.
Changing $div = $ '<div>' to $div = $ '<div>' ☻.appendTo 'body' might be a better example. Ending parenthesis and then going on with a comma to another argument is arguably much less readable, but a single liner like this might be better.
Appending chained, indented methods are another example
Alright, I'm not formally schooled, but I do code 12+ hours a day, some for work and some for pleasure, so I'm all about moving things forward. Those pretenses aside, I think there needs to be a parenthesis terminator so that when changing code that utilizes a space such as we change
Math.max 2, parseFloat '123.456'
toMath.max 2, parseFloat('123.456'), 999
, we need not enter code into 2 places(one to replace the space and once more). Enter parenthesis terminator.I'm up for debate on what character to use, but smiley face seems like a good ambassador. Having a character to end parenthesis means we can make a change involving closing parenthesis in 1 insertion. Constantly moving forward. Adding new code and refactoring old code are one in the same, but it seems redundant to have to go back to go forward in simple situations as this.
Changing
$div = $ '<div>'
to$div = $ '<div>' ☻.appendTo 'body'
might be a better example. Ending parenthesis and then going on with a comma to another argument is arguably much less readable, but a single liner like this might be better.Appending chained, indented methods are another example
So going from the first line, adding the second line, and then adding the 3rd line becomes 3 insertions as oppose to 5.
Coding is all about saving time, right?
The text was updated successfully, but these errors were encountered: