|
|
|
|
|
by bostonaholic
5032 days ago
|
|
}); is not a line of code. Please stop counting it as such. Here's a good rule of thumb: "If it can be moved to the line above, without any other changes, it's not its own line of code." The argument that CoffeeScript saves countless }); }); } } is invalid, IMO. I would even argue that function definitions are not lines of code. Example: (ruby) def foo
end 0 lines of code. BTW, I'm not a CoffeeScript hater, just trying to level the playing field. |
|
I agree that counting }); as a line isn't necessary, but CoffeeScript saving you doing any of that is a very valid benefit. It cleans up code dramatically- ignore line numbers and just think about all the extra stuff that ends up surrounding multiple function calls.