Welcome to WebmasterWorld Guest from 18.104.22.168
Most languages these days, if not all, require some different symbol for assignment and test. PHP has the =/== for example.
I still write code as if I am working on that old apple ii, and I keep wondering why the code fails in weird places.
Do you have any bad habits from previous work that get you in consistent frustration and trouble? Do you validate code for others that has odd problems like this?
(I just spent three days beating my head against the code because of this. Very frustrating)
Worst error ever:
delete from table where id - 234;
In case anyone can't spot it - this deletes all records less than 234 instead of = 234. The minus key is too damn close to the equals key. :-)
Thank Admin for backups. :-)
Assembler programming and people who have problems paying attention to details don't really mix well...
Testing against the wrong database would be another major goof...
At one place I worked they had a couple of contractors working on their inventory system. When I was a new hire they started showing me how to use the "test" system. Only the company didn't have a test system. The contractors had been playing around with the actual production quantities for weeks - adding parts, changing quantities from 100 to zero and back again, etc. I found out when I ran a live production report and it had things like Aaron and Bills gaskets - their names were Aaron and Bill. Coincidence? I think not.
And I imagine the screams of pain from the legal and accounting staff when it was discovered. Having to re do all the inventory.
Must have been a real expensive mistake for the company though.
It was an oil drilling supply company so some of the inventory parts were really expensive machinery parts for oil rigs. The errant contractors weren't just changing quantities on things like staples and screws.
The division of the company I worked for ended up shutting down but not due to poor inventory control, though I'm sure that didn't help. It would have gone bankrupt anyway due to the oil bust in the 1980s. Few companies were drilling any new oil wells for awhile back then because there was a glut of oil and prices were too low to support more drilling (or so some of the short sighted industry executive thought back then).
[edited by: Jane_Doe at 10:13 pm (utc) on June 13, 2009]