Wasted Development Time

I hate those situations in which you sit down for a few weeks and implement a highly complex algorithm you made up yourself for solving a specific problem. Finally, happy that you finished it and it does what it is supposed to do, you notice that it doesn't work in all cases you have thought of, and that all your work was senseless. But instead of deleting all the code and starting from scratch, you try to fix those few edge cases with evil, evil hacks, but instead of getting better, the problem gets even more bad. That's what just happened to me. Argl. I guess I have to start over again. Sometimes, programming really sucks. :/

eight comments, already:

Satisfy my curiosity: was it object oriented?
Nostaw - 11 04 12 - 14:32

Yes, but it had nothing to do with that. Why?
niko - 11 04 12 - 15:38

Any details about the problem?
Julien Koenen - 11 04 12 - 20:45

hah that’s what I love about programming, it can completely shatter your ego.

One moment you are thinking you are so smart for implementing this amazing new algorithm, the next you feel like an ass for wasting so much time on it.
Umar - 12 04 12 - 09:13

Is it related to object edge detection, or something entirely different?
xaos - 12 04 12 - 11:01

no, some work for a client, nothing very interesting. :)
niko - 12 04 12 - 16:27

Programming is like that. The more it seems that we made an excellent program, the harder it is to correct the bug that we discovered later.
Enrique Gabriel Baquela (link) - 13 04 12 - 03:44

Tell me about it… I had to develop and implement an algorithm for analyzing a video-stream in realtime. Then I found out, that in one special case it won’t work as expected and – even worse – crash the entire application. Client said, that it was okay, since this case would never happen (yeah, I hear you Murphy). Turned out, that under real conditions this “rare” case showed up 20-30 percent of the time.

Then the patching started… and continued…
KIENI - 16 04 12 - 13:46

Remember personal info?
Email (optional):
URL (optional):
Enter "layered" (antispam):
Comment:Emoticons / Textile

  ( Register your username / Log in )

Notify: Yes, send me email when someone replies.  

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.
Note: If you type in your email adress above, it will be visible to other visitors, although it will be hidden for bots using javaScript.