Click here to Skip to main content
15,886,873 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: I just made a secret GOTO Pin
peterchen14-Aug-13 1:24
peterchen14-Aug-13 1:24 
NewsSomething original Pin
Super Lloyd6-Aug-13 21:03
Super Lloyd6-Aug-13 21:03 
JokeRe: Something original PinPopular
Argonia6-Aug-13 21:24
professionalArgonia6-Aug-13 21:24 
GeneralRe: Something original Pin
Super Lloyd7-Aug-13 2:57
Super Lloyd7-Aug-13 2:57 
GeneralRe: Something original Pin
BotCar6-Aug-13 22:01
BotCar6-Aug-13 22:01 
GeneralRe: Something original Pin
Argonia6-Aug-13 23:36
professionalArgonia6-Aug-13 23:36 
GeneralRe: Something original Pin
MarkRHolbrook6-Sep-13 3:20
MarkRHolbrook6-Sep-13 3:20 
GeneralRe: Something original Pin
MarkRHolbrook6-Sep-13 6:18
MarkRHolbrook6-Sep-13 6:18 
As I sat here working I thought about your signature again:

What is this talk of release? I do not release software. My software escapes leaving a bloody trail of designers and quality assurance people in its wake.

What struck me is that most of my career has been in high-resolution measurement and robotic control. And I specifically remember two projects where this signature almost became truth.

First was a big Sieko SCARA robotic disk sorter. This robot measured almost 4 feet at its longest extension and it could retract and move 180 degrees and extend out 4 feet in the other direction in just about 1/10 of a second. The thing was bloody fast! We of course built a plexiglass sensor tripped cage around the thing so no idiot would get it it's way. Well one did. He removed the plexiglass portion where he needed to work, jumped the sensor and leaned in slightly to look at an issue with a printer. He spent about a week in the hospital after the bump on the head.

The next was an instrument down the line from the disk sorter. It was a combiner. It had a big chuck on it to pick up about 25 disks and it would move laterally left/right to combine disks into caddies for shipment. Of course it needed to be fast so we used the biggest NEMA steppers and drivers we could find. This thing could traverse about 4 feet in 1/10 of a second. It too had a plexiglass cage. But one day I was working underneath it looking at some issues with the conveyor, I was well clear but then I heard this scream and instinctively I hit one of the gazillion estop buttons we'd wired in. A young assemply worker had her hand caught between the side of the machine and the moving carriage. Crushed quite a few bones. Why she had her hand in there was beyond me. But of course it was the software's fault for not "knowing" that a hand was in the way and gracefully stopping. Sigh...

Third was an instrument that spun silicon wafers to coat them for prep. It used a big servo motor for the spinner. They had to spin pretty fast. They would come in, a mechanical centering device would center them on the vacuum chuck, retract then they would lower into a bowl and the big servo motor would spin them up to a fairly high speed. Well those of you familiar with servos know they need to be tuned. Kd, Ki, Kp, etc. Usually you have to do it under load. So stupid me put a 300mm wafer on the chuck, centered it, lowered it in to the bowl, opened the protective lid, jumped the protection sensor and hit go on the tuning algorithm. That thing went crazy as it tried to compensate for that 300mm wafer and its wait. Within about 5 seconds that wafer shot off down the hall travelling at about 50 mph, impacted the cheap office partition and exploded. Not 10 seconds later did the gorgeous blonde secretary walk around the corner carrying her lunch. I turned white when I realized the wafer was just about at her neck level where it went into the partition.

I've been stupid and I've been lucky and thats why our signature is so... well appropriate!
GeneralRe: Something original Pin
AlexCode6-Aug-13 23:45
professionalAlexCode6-Aug-13 23:45 
GeneralRe: Something original Pin
Argonia7-Aug-13 0:19
professionalArgonia7-Aug-13 0:19 
GeneralRe: Something original Pin
AlexCode7-Aug-13 1:09
professionalAlexCode7-Aug-13 1:09 
GeneralRe: Something original Pin
Super Lloyd7-Aug-13 3:00
Super Lloyd7-Aug-13 3:00 
GeneralRe: Something original Pin
PIEBALDconsult7-Aug-13 4:41
mvePIEBALDconsult7-Aug-13 4:41 
GeneralRe: Something original Pin
Sentenryu7-Aug-13 9:18
Sentenryu7-Aug-13 9:18 
GeneralRe: Something original Pin
Super Lloyd7-Aug-13 14:13
Super Lloyd7-Aug-13 14:13 
GeneralRe: Something original Pin
Brisingr Aerowing8-Aug-13 2:38
professionalBrisingr Aerowing8-Aug-13 2:38 
GeneralRe: Something original Pin
Lutosław13-Aug-13 5:45
Lutosław13-Aug-13 5:45 
GeneralRe: Something original Pin
Sentenryu13-Aug-13 6:32
Sentenryu13-Aug-13 6:32 
GeneralRe: Something original Pin
Lutosław13-Aug-13 23:21
Lutosław13-Aug-13 23:21 
GeneralRe: Something original Pin
Sentenryu14-Aug-13 3:22
Sentenryu14-Aug-13 3:22 
GeneralRe: Something original Pin
Lutosław14-Aug-13 4:21
Lutosław14-Aug-13 4:21 
GeneralRe: Something original Pin
MacSpudster13-Aug-13 5:05
professionalMacSpudster13-Aug-13 5:05 
GeneralRe: Something original Pin
Lutosław13-Aug-13 5:51
Lutosław13-Aug-13 5:51 
GeneralRe: Something original Pin
Brisingr Aerowing19-Aug-13 16:20
professionalBrisingr Aerowing19-Aug-13 16:20 
GeneralRe: Something original Pin
ExcellentOrg21-Aug-13 0:04
ExcellentOrg21-Aug-13 0:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.