• 0 Posts
  • 894 Comments
Joined 3 years ago
cake
Cake day: June 16th, 2023

help-circle





  • I had a coworker on one project that took input as short integer values between 0 and 32767. The values conceptually represented min and max values between 0.0 and 1.0, so one day he changed all the parameters to Float, like in hundreds of places. Since the application then wouldn’t compile, he wrapped all the calls via search-and-replace so that the integer parameters were cast to Float and then clamped between 0.0 and 1.0.

    Viola! the application then compiled. Unfortunately, this application controlled a baseball-throwing machine capable of 125 mph and he decided to test his new version (for the very first time) on an actual baseball field with Little Leaguers on it. The machine’s first throw was supposed to be a soft ground ball to the shortstop, but was instead a 125 mph knuckleball a foot above the kid’s head. This lead to the only time in my programming career when I had to physically intervene to prevent a fistfight (between the client and my manager).


  • It’s funny, I know exactly zero programmers (and this includes myself) who didn’t initially encounter SQL and decide it was clunky and stupid and try writing their own classes to write the SQL for them. I want to think it only took me a few weeks until I understand its actual value and purpose but I’m probably misremembering my past. The worst I ever saw, though, was a coworker who tried writing his own ORM. He had one project with classes named “AND.cs” and “OR.cs”. All they did was take an input string by reference and append " AND " or " OR " to it respectively. I’m sure I never before or since encountered a class that did less work.


  • Circa 2005 I created a mobile app (for the honest-to-god-that’s-what-MS-named-it “WinCE” OS that later became Windows Mobile) that allowed workers to survey power line networks in the field and indicate all the trees that needed to be trimmed or removed. The app used a local SqlCE database and the workers would upload their recorded data at the end of the day back in their hotel rooms using Remote Data Access, an MS technology which allowed SqlCE databases to “sync” with a master Sql Server database.

    It almost always worked flawlessly (100% during development, natch), except for once in a while when synced data would somehow end up in a weirdly corrupted, mangled state on the central server. Like, records that were lacking a primary key value (!), something that is basically impossible to achieve. I opened a ticket with MS support and we went back and forth on this for a few weeks until they basically said “yeah that’s fucked” and recommended that I modify my app to sync the same data multiple times to ensure it made it to the server correctly.

    I actually had substantial faith in MS products up to that point (facepalm).



  • we have to be able to forgive and start building bridges together

    This is a nice-sounding sentiment, but in practice it just means not prosecuting Republican crimes during the brief periods when Democrats have a small bit of power. I’d be happy to forgive Republicans … after they’ve been frog-marched to prison. Letting them off the hook has always meant they just come back worse than ever.




  • My first brand-new car was a '90 Nissan Sentra, back when Sentras were the absolute bottom of Nissan’s product line. It had AC but the car basically couldn’t accelerate with it on unless I was going downhill. Unfortunately I lived in Florida (no hills) so I drove around with no AC. In Florida. This was bad enough but also the windows were hand-cranked so I just left them down all the time. That car was a soggy mess and I kept getting shit stolen.