zaterdag 14 januari 2012

Sometimes coding can be extremely funny

Didn't know how hilarious this piece of my code was until I woke up this morning.

function ShowLimit(what,kids,howmany){
    $(what).children(kids).each(
        function(index){
            if(index>=howmany){
                $(this).hide('fast');
            }
        }
    );
}
The message behind the code is that if you have too much kids, then its better to hide the oversupply fast..ehm sort of.