Vladimir "Dair" Lebedev-Schmidthof (dair_spb) wrote,
Vladimir "Dair" Lebedev-Schmidthof
dair_spb

Муки выбора (программистский юмор)


Встретил в коде такоэ:

    char color[128];
    if (sizeof(size_t) == sizeof(unsigned int))
    {
        sprintf(color, "{{color=%08lx}}%u{{/color}}", percentColor, openCount);
    }
    else if (sizeof(size_t) == sizeof(unsigned long))
    {
        sprintf(color, "{{color=%08lx}}%lu{{/color}}", percentColor, openCount);
    } else 
    {
        sprintf(color, "{{color=%08lx}}%I64u{{/color}}", percentColor, openCount);
    }


Смеялся.
Tags: humor, software development
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments