Monday, October 02, 2006

 

I Hate Programmers

Why would anybody write this:

if ( (k == 0x43) || (k == 0x56) || (k == 0x58) || (k == 0x5a) ||
     ((0x70 <= k) && (k <= 0x78)) )
{
    // ...
} 

when they could write this:

if ( (key == 'C') || (key == 'V') || (key == 'X') || (key == 'Z') ||
    ((VK_F1 <= key) && (key <= VK_F8)) )
{
    // ...
} 

???


Comments:
Um... Sadism?
 
Algebra
 
Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?