|
> But they all called him "a tool" (not in jest).
I never actually met the Atul who my nym "honors", but he was the worst programmer of all time (hence the '666'), and a few years ago I was tasked with fixing his code. Actually he was just one of a team of godawful terrible programmers, but he was the only one who left his name in the comments, saying -- I kid you not -- "Atul did this". He seems to have not realized how funny that sounds when read aloud in English. Here's an example of how bad he was. He'd written a function to remove the leading whitespace from a string. His algorithm worked something like this: Check if the first character of the string is a space. If so, copy the entire rest of the string back one character, something like "while( str[x] ) str[x-1] = str[x];". And then repeat the whole process. Given a long string with lots of leading whitespace (which wasn't unusual), this process could take quite a while. Another example: He'd written a function that returns a pointer to a string buffer. Most people would either a.) malloc a buffer of the right size, and return a pointer to it, or b.) declare a static buffer of a 'big enough' size, and return a pointer to it, at least so long as the app doesn't have to be thread-safe. Atul picked option c.), declare a regular array on the stack inside the called function, and return a pointer to local storage, with a comment in the code advising people to use the returned result immediately, before calling any other functions, otherwise the result would be overwritten. Wow. It even sort of worked, at least on Windows, anyway. Sentiment : Strong Sell Rating :
![]() ![]() ![]() ![]() (1 Rating) |
Male |
Messages in Topic
| Subject | Author | Rating | Time of Post (ET) | ||
|---|---|---|---|---|---|
|
nothing changes the fact that the count of deaths ...
|
b29651
Online Now
|
Rate it | 8-Sep-05 09:41 am | ||
|
...
|
chad_hangin... | Rate it | 8-Sep-05 10:40 am | ||
|
As a tax and spend Democrat, I am more conser...
|
bike4freedo... | Rate it | 8-Sep-05 12:01 pm | ||
|
...
|
span1sh1nqu... | Rate it | 8-Sep-05 01:05 pm | ||
|
>> With the subject of abortion in ...
|
ruidhmurphy | Rate it | 8-Sep-05 01:39 pm | ||
|
>>The problem is that conserva...
|
room_one_oh... | Rate it | 8-Sep-05 01:59 pm | ||
|
Rec'd. People mistakenly belie...
|
bystander13... | Rate it | 8-Sep-05 02:05 pm | ||
|
...
|
span1sh1nqu... | Rate it | 8-Sep-05 02:31 pm | ||
|
Spanish, I hope we are no...
|
ERP_Expert | Rate it | 8-Sep-05 02:40 pm | ||
|
...
|
span1sh1nqu... | Rate it | 8-Sep-05 03:33 pm | ||
|
...
|
bystander13... | Rate it | 8-Sep-05 04:12 pm | ||
|
>> The Federalist Papers ...
|
ruidhmurphy | Rate it | 8-Sep-05 05:08 pm | ||
|
...
|
rfc_3501 | Rate it | 8-Sep-05 07:27 pm | ||
|
Erm, asking Saddam to stop gassing the K...
|
aim_here200... | Rate it | 8-Sep-05 07:42 pm | ||
|
...
|
rfc_3501 | Rate it | 8-Sep-05 07:48 pm | ||
|
Oh a brief spot of googling ge...
|
aim_here200... | Rate it | 8-Sep-05 08:05 pm | ||
|
...
|
rfc_3501 | Rate it | 8-Sep-05 08:10 pm | ||
|
Twisting and turning...
|
aim_here200... | Rate it | 8-Sep-05 08:25 pm | ||
|
...
|
rfc_3501 | Rate it | 8-Sep-05 08:33 pm | ||
|
And when I...
|
aim_here200... | Rate it | 8-Sep-05 08:40 pm | ||
|
I've ...
|
rfc_3501 | Rate it | 8-Sep-05 08:49 pm | ||
|
...
|
hedgefrog1 | Rate it | 8-Sep-05 08:35 pm | ||
|
Here you go: h++p://www.curso...
|
bystander13... | Rate it | 8-Sep-05 08:10 pm | ||
|
...
|
rfc_3501 | Rate it | 8-Sep-05 08:19 pm | ||
|
...
|
diogenese19... | Rate it | 8-Sep-05 08:24 pm | ||
|
...
|
rfc_3501 | Rate it | 8-Sep-05 08:32 pm | ||
|
dio:...
|
bruce_s01 | Rate it | 8-Sep-05 09:18 pm | ||
|
...
|
rfc_3501 | Rate it | 8-Sep-05 09:40 pm | ||
|
...
|
bruce_s01 | Rate it | 8-Sep-05 09:10 pm | ||
|
I'm a little worried about lack of visible dissent...
|
nofundsleft | Rate it | 8-Sep-05 01:33 pm | ||
|
>>But republicans/neocons all seem to be on t...
|
verygoodbea... | Rate it | 8-Sep-05 01:42 pm | ||
|
>>> This administration is all talk (mos...
|
Eric_J_Land... | Rate it | 8-Sep-05 01:46 pm | ||
|
I once told a gay friend: "I think ...
|
frogstar_ro... | Rate it | 8-Sep-05 05:46 pm | ||
|
...
|
rfc_3501 | Rate it | 8-Sep-05 07:24 pm | ||
|
...
|
diogenese19... | Rate it | 8-Sep-05 07:28 pm | ||
|
"BY A BARBARIC, MURDERING BUSH" #299949...
|
rfc_3501 | Rate it | 8-Sep-05 07:38 pm | ||
|
...
|
diogenese19... | Rate it | 8-Sep-05 07:49 pm | ||
|
...
|
rfc_3501 | Rate it | 8-Sep-05 08:02 pm | ||
|
<satire> The thing I don't und...
|
atul666 | Rate it | 8-Sep-05 09:07 pm | ||
|
Atul, You are a very, ver...
|
bruce_s01 | Rate it | 8-Sep-05 09:24 pm | ||
|
Re: OT - atul
|
atul666 | (1 Rating) | 8-Sep-05 09:59 pm | ||
|
Oh atul666, it ...
|
con_fuse9 | Rate it | 9-Sep-05 12:43 am | ||
|
Ahh, sadly...
|
atul666 | Rate it | 9-Sep-05 04:31 am | ||
|
I thought those...
|
jjjacq | Rate it | 9-Sep-05 12:50 am | ||
|
how about this ...
|
choconutdan... | Rate it | 9-Sep-05 03:29 am | ||
|
Ah, the ol...
|
codswallet | Rate it | 9-Sep-05 04:17 am | ||
|
That other...
|
atul666 | Rate it | 9-Sep-05 05:10 am | ||
|
Or how abo...
|
peredurabef... | Rate it | 9-Sep-05 07:58 am | ||
|
>> Here's an ex...
|
raymond_bab... | Rate it | 9-Sep-05 01:12 pm | ||
|
Oh, I thin...
|
mcbride4pri... | Rate it | 10-Sep-05 03:55 am |
< Newer Topic
| Older Topic >
