00:00
00:00
preffertobedead
I live in a delusional state of mind.

Santiago Sotomayor @preffertobedead

Age 35, Male

Software Developer

Universidad CAECE

Argentina - Bs.As- MDP

Joined on 10/21/06

Level:
10
Exp Points:
914 / 1,110
Exp Rank:
74,988
Vote Power:
5.18 votes
Rank:
Civilian
Global Rank:
86,468
Blams:
29
Saves:
38
B/P Bonus:
0%
Whistle:
Normal
Medals:
139

IQ<20 ? echo "you can be a programmer" : "you can not"

Posted by preffertobedead - September 6th, 2008


By reviewing some old code of an old app i was assigned to solve i found the most weirdest way of thoughts..

$t = 5; /* set auxiliar/*

do{
$img = mt_rand(0, 15); /* get random image */
t--;
}while ($t>0)

of course there was an array with images declared in another php file..but i still was intricated of why such a fancy way of picking this random way of making an image to be chosen with such a stupid algorithm..so i mailed the original enterprise that developed it and the original programmer answered.

"it makes it more random in that way because... it's done 5 times !" (written in a mood of.... IM SUCH A SMART ASS)

Somehow...after i readed this answer..i founded out why this proyect was loading so GOD DAMN SLOW..

there is no need to copy all the AWFUL CODE i founded later in the app...


Comments

Yeah, obviously Pi.

And HEY!!! Niec to seeya!

Nice to read you too. =P.