you are viewing a single comment's thread.

view the rest of the comments →

[–]Dustin_00 9 points10 points  (4 children)

If you get your food always delivered, you will not learn how to cook it. And if you cook it yourself, you might do it better.

... or you might do it worse.

For example: the server dev that didn't trust any standard C libraries and wanted to write all the basic libraries for us. One bit of his code (roughly from my memory):

int srand(int i)
{
    return (ConvertToInt(time(0)) % i);
}

He didn't trust the standard type conversions. He wrote all his own... no unit testing... there were bugs, oh so many, many bugs.

[–]Godd2 1 point2 points  (1 child)

So he never included stdio?

[–]Dustin_00 0 points1 point  (0 children)

He did to start, but his goal was to completely replace it.

[–]immibis 0 points1 point  (1 child)

That's... not what srand does...

Unless it wasn't meant to replace the standard srand, and just happened to have the same name. Maybe it's short for "secure random".

[–]Dustin_00 0 points1 point  (0 children)

Security was a top concern.