![]() | Ned Batchelder : Blog | Code | Text | Site Code bloat » Home : Blog : August 2004 |
Code bloatFriday 13 August 2004 Bob links to Jason Marshall's The Exponential Nature of Lines of Code:
tagged:
development» 1 reaction | |
Comments
If you think that's bad, look at this :(
This frickin expression is so long, the author thought comments would help! Beats me!
if (((! xact->ios_input[0]) && (kp->flags & DATA_REQ)) ||
((xact->ios_input[0]) && (!(kp->flags & (DATA_REQ+DATA_OPT)))) ||
(((xact->ios_input[0]) && (kp->flags & DATA_CHK)) &&
/* ENTERED DATA LENGTH */
((xact->ios_input[0] < (char)kp->minl) ||
(xact->ios_input[0] > (char)kp->maxl) ||
/* ENTERED DATA VALUE (only if maxv not zero) */
(kp->maxv &&
((xact->ios_value < kp->minv) ||
(xact->ios_value > kp->maxv))))) ||
/* BITS TO BE TESTED (IF ANY) */
(kp->test && (! test_bit(kp->test))) ||
/* MODULO CHECK ENTERED DATA */
((kp->mod) && (fmodulus(kp->mod,""))))
Add a comment: