Bad taste in programming
Posted Mar 1, 2007 18:45 UTC (Thu) by vmole
In reply to: Bad taste in programming
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.
to post comments)