Depressing code

I have seen some code that may require serious consulting sessions, but this is probably the most depressing piece that I have seen so far:

image

And before you ask, it is about people...

Print | posted on Friday, September 07, 2007 4:15 AM

Feedback


Gravatar

# re: Depressing code 9/7/2007 5:08 AM AASoft

Erm..."CreateDeathProcess"??

Please tell me you are not trying to take over the universe...'cause, ya know, that kinda interferes with my plans to do so :D


Gravatar

# re: Depressing code 9/7/2007 8:02 AM Jon Davis

Is this for a mortuary or an HR department to deal with laid off / terminated folk?


Gravatar

# re: Depressing code 9/7/2007 8:31 AM Gian Maria

Can you post the code?, I'm always thinking about a routine that can kill someone :D

Alk.


Gravatar

# re: Depressing code 9/7/2007 9:51 AM PandaWood

Well, I suppose it makes sense, in isolation, as long as there's never a need for a 'OnKillDeathProcess' below the current 2 classes.


Gravatar

# re: Depressing code 9/7/2007 2:41 PM Markus Zywitza

Let me guess: It is for a hospital. If someone dies, there must be some procedures fulfilled. The original developer had a strange kind of humour and a knack for design patterns.


Gravatar

# re: Depressing code 9/7/2007 4:54 PM Joe

I once had to write a method called MarkDeceased to handle ticking a checkbox when a patient dies. Yeah, pretty depressing.


Gravatar

# re: Depressing code 9/8/2007 6:57 PM Ayende Rahien

Jon,
ERP for a nursing company.


Gravatar

# re: Depressing code 9/8/2007 6:58 PM Ayende Rahien

Markus,
See my comment above.
The design is actually solid, but the details are horrifying because the domain is so depressing.
The property list for some of the entities...


Gravatar

# re: Depressing code 9/9/2007 11:32 AM Adi

You should send it to the WTF site.

Comments have been closed on this topic.