Bad taste in programming
Posted Mar 1, 2007 18:45 UTC (Thu) by
vmole (guest, #111)
In reply to:
Bad taste in programming by pr1268
Parent article:
Re: [GIT PATCH] HID and USB HID update for 2.6.21-rc2
Your first three examples are not bad taste, but simply errors (well, 'for(;;;)' does have its occasional use, but in general...).
OTOH, regarding, the un-readable condition clause: there was a recent thread in lkml about this. Yes, it might be technically correct, but its undereadable and unverifiable to the casual reader. Much better to break up into shorter, independent check. So sayeth Torvalds. Sorry, don't have an exact pointer to the thread.
(
Log in to post comments)