[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[FWP] Eliminating whitespace does not usefully shorten code



There is value in being able to say "This code snippet is shorter than
that code snippet" because it usually indicates that a more
appropriate or more elegant construct has been used.

Unfortunately, this `shortening' is too often pushed to the excess of
removing all non-strictly necessary whitespace.  But, I believe,
mostprogrammersfindcodewithwhitespaceeasiertoread.

So, all other things being equal, please use whitespace liberally when
writing your code. And if you insist on comparing code snippets based
on their respective exact lengths, then just subtract from the count
the amount of `unnecessary' whitespace they contain.

Thank you.

-- 
Luc St-Louis
lucs@cam.org

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe