So funny

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
kaisellgren
DevNet Resident
Posts: 1675
Joined: Sat Jan 07, 2006 5:52 am
Location: Lahti, Finland.

So funny

Post by kaisellgren »

Some of you have probably already read this but... http://thedailywtf.com/Articles/The-Yea ... .aspx#Pic1
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: So funny

Post by josh »

The application I am working on now is like that. The old programmers did exactly that with the states field. They created a state called "outside of US" so they could leave the "state" field on the screen even after the user selected another country.

Almost every table had a corresponding cron script that had to run nightly and compute the values as well. My client always used the words "run the cron", which makes no sense because cron is a daemon that run commands at predefined intervals, you don't run the cron, you edit the file. Well it turns out the old programmer's had a cron script which used regex to remove itself from the cront-tab after there was no more records left for it to act on, upon wanting it to run again an administrator had to re-add the command to the cron-tab file and they referred to the process as "running the cron". I posted one of those scripts here viewtopic.php?f=50&t=110451

As you can see the "concept" of counting the employees is scattered all over the system, anytime a job is open and closed from any screen, the code has to keep those column counts in sync, if it gets out of sync for whatever reason our data is just wrong. All this to avoid select COUNT(*) where?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: So funny

Post by Christopher »

Yeah, I have seen that too ... often accompanied by a "state_other" field. What's worse is that there really are more that 50 states for addresses when you add in territories (e.g., Guam, US Virgin Islands, etc.) and the military post codes. Oh and then there is that Canada place (I think somewhere up there between Maine and Alaska) that adds 13 more.

That one is not as funny as the year example above it, or the "did i get my check?" one at the end.
(#10850)
Post Reply