• About
  • Jerry’s Story

swalchemist

swalchemist

Category Archives: technology

Respect for the old folks

17 Tuesday Oct 2017

Posted by Danny R. Faught in technology

≈ Leave a comment

I enjoyed reading Andrew Wulf’s blog post, “The Future Is Always Different Than You Can Imagine. He looked back 36 years to his first day of work as a programmer:

On that first day I wore a suit to work. Everyone did. No one had a computer on their desk. We had a bullpen with terminals (both IBM and Harris) that you signed up for time on and thus were shared resources. On that first day I met two “old guys” who did batch programming on the IBM, they worked on multiple projects at a time as they got only one compile-run cycle a day. They had started programming, of a sort, in the late 1950s on some kind of analog computer involving plugging in wires. They seemed so old and wise. They were much younger than I am now.

These “old guys” seem very much like my friend, Jerry Weinberg, who used digital plugboard computers after he started working for IBM in 1956. His experience with analog computers was mostly in replacing them with more modern digital computers. It’s fun to imagine how he viewed the old folks using those analog computers when he first started programming.

Do we look at the old folks now with the same respect that Andrew did in 1981? I respected Andrew when I was working with him a handful of years ago, though he didn’t seem that old then. I think it’s difficult for the old folks to get much respect now. I’ve seen some who don’t want to embrace the technology changes as fast as they’re coming, so they find pockets in the industry where older technologies are still used. Or they use the authority they’ve gained as “old folks” to hold their organizations back from adopting the changes.

I do appreciate it when I find the industry veterans who are following along with the changes, like when Jerry talks about agile processes and ties them back to things he’s been doing all along. Andrew, thanks for the perspective.

 

 

Unit Testing – A Taste of My Own Medicine

10 Friday Nov 2006

Posted by Danny R. Faught in archive, technology, testing

≈ Leave a comment

Tags

programming, software-development, testing

Throughout my career, I’ve been fussing at software developers about not doing decent unit testing. Recently I had to focus that fussing on myself.

I like the idea of test-driven development, where an automated unit test is developed in conjunction with the product code. But I don’t do it very often. Sometimes it’s because I don’t know if I’ll ever use the code I’m writing again – it’s just a one-off thing that won’t need to be repeated after the code does its work once. Sometimes it’s because of the difficulty in setting up a unit test, like my code that uses Watir to automate Internet Explorer. Some of my excuses are the same kind of excuses that the developers I’ve been fussing at have used.

I’m not ready to draw any big conclusions about unit testing, either for my test automation or for product development, but I do want to relate a success story. I had been struggling for a couple of days with a Perl program that parses an SCL script (OpenSTA’s scripting language). It would read in the SCL file, piece together all the line continuations so I could search each statement as a single entity, modify some of the statements, then split them back up into shorter lines. It was mostly working, but little glitches kept appearing – extra blank lines would appear, a line would be cut off too short, etc. As soon as I fixed one glitch, another would appear – the parsing process was fairly complex.

Finally it dawned on me that if a developer were to describe this problem to me, I would suggest that he immediately write unit tests. So that’s exactly what I did. I tried Perl’s Test::Unit module in earnest for the first time. It took a while to figure out how to set up the tests – the examples in the documentation are too trivial to show how a real unit test would work. But after a few hours, I was adding tests, and the tests were finding bugs. It only took a handful of rounds of adding a test, fixing a bug, then finding and fixing the bugs that the fix uncovered. The glitches were gone.

So while I struggle to find the right balance to determine what test automation code should have unit tests, I’ve learned that the code that isn’t working is definitely a good candidate for unit testing.

Originally published on the Tejas Software Consulting Newsletter blog.

Newer posts →

Recent Posts

  • Seeking the Inner Ring – Revisited
  • Use Your Unit Tests, or Else
  • Open-Minded Networking
  • Design Evolutions Doomed to Never Finish
  • Adventures in Personal Library Management

Recent Comments

Danny R. Faught's avatarDanny R. Faught on Seeking the Inner Ring –…
coutré's avatarcoutré on Seeking the Inner Ring –…
Danny R. Faught's avatarDanny R. Faught on Use Your Unit Tests, or E…
coutré's avatarcoutré on Use Your Unit Tests, or E…
Five for Friday… on Four Years after the 343

Archives

  • October 2025
  • September 2025
  • March 2025
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • March 2024
  • February 2024
  • February 2022
  • September 2021
  • August 2020
  • July 2020
  • February 2019
  • December 2018
  • October 2018
  • August 2018
  • June 2018
  • March 2018
  • February 2018
  • October 2017
  • September 2017
  • May 2017
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • September 2013
  • August 2013
  • November 2006
  • April 2003

Categories

  • archive
  • career
  • Jerry's story
  • life
  • security
  • software-development
  • technology
  • testing
  • travel

Meta

  • Create account
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com

Blog at WordPress.com.

  • Subscribe Subscribed
    • swalchemist
    • Join 26 other subscribers
    • Already have a WordPress.com account? Log in now.
    • swalchemist
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar