Skip to main content
T N's user avatar
T N's user avatar
T N's user avatar
T N
Retired after 50 years of programming
  • Member for 6 years, 1 month
  • Last seen this week
  • Pale blue dot

About

I started out in 1972 programming an Olivetti Programma 101 desktop computer (60s technology, constructed from discrete transistors and other components, no ICs, magnetostrictive delay line memory). I eventually worked my way up to more capable machines over the years.

I now enjoy doing puzzles in my spare time, and some of the most challenging and rewarding puzzles I run across are in the how-to questions posted right here on Stack Overflow.

Biggest programming mistake in my career:

As a seasoned programmer, I once coded DELETE FROM Orgs WHERE OrgId IN (SELECT OrgId FROM @OrgsToDelete), along with all dependent deletes from many, many other tables. Trouble was: the @OrgsToDelete table-variable only contained an OrgName column, not OrgId. Interestingly, it was still valid code, and SQL Server found a way to make it work. (How it worked, I leave as an exercise to those familiar with correlated subqueries.)

My manager was in a rush to apply this to production without proper testing, and I was late for my daughter's birthday party, so I left it in my manager's hands to push the change through and apply it to production. I later got word that it completed, but that it took an unusually long time to run. It was another hour or two late into the evening when we realized that all org data and dependencies had been deleted. The final nail was when the transaction logs got purged at midnight, eliminating the possibility of performing a simple rollback the last good point in time. Fun.

Spent the next 36 hours reconstructing the lost data from home-cooked audit tables that we luckily maintained.

Lesson learned: Alias your tables and qualify your column references.

Funniest mistake in my career

It was actually a co-worker of mine who was adding new functionality to a medical marketing application that included a link to an external web site. Not knowing that actual URL at the time, he dropped in a placeholder. As you may have guessed, the placeholder was not updated before the changes made their way to production.

It wasn't long before our physician clients started clicking on the new link. Most browsers at the time would helpfully append ".com" to the end of any incomplete URL to make it work, and we started getting unusual reports from our doctor friends about being directed to "XXX.com" porn sites.

Had a good laugh about that one.

Something I started working on:

1
gold badge
13
silver badges
30
bronze badges
512
Score
489
Posts
80
Posts %
414
Score
394
Posts
65
Posts %
181
Score
146
Posts
24
Posts %
77
Score
63
Posts
10
Posts %
74
Score
67
Posts
11
Posts %
21
Score
15
Posts
2
Posts %