atomic_fungus (atomic_fungus) wrote,

#1176: Another WTF

Daily WTF has a story involving punch cards and small accounting errors.

I keep seeing this kind of attitude from some commentors:
So, as a naive C++ native speaker who was still in kindergarten when the Apple ][ came out, I'm having trouble grokking the problem here. If I wanted to parse, say, a block of data in memory, I'd either a) read the size, then read [size] bytes of data, or b) read data until I hit a predefined delimiter. If the cards have a sequence number, the only way to miss one without noticing is if the one she tossed was the last one. But in that case, either a) there's not enough data to meet the stated size, or b) she'd have thrown out the card with the delimiter. Or were programmers back then so stupid they just read until people stopped feeding in cards?

"So stupid"?

People with that attitude really don't understand the history of the technology they're working with.

Simply put, when you're running a batch of punch cards to input data, there is no need for delimiters. It's actually that simple: just input data until you run out of records. In fact, it's probable that the machine they were using was a tabulator: its only function was to read the data on each punch card and input it into the mainframe.

This is the second time in a week that I've felt the need to make this kind of comment. The young'uns don't know how good they have it.

  • #7749: No, it didn't happen

    I did not fire up the grill and make burgers. I slept like a stone, and when I got up, we went to the laundromat, and then to Culver's. Oh well. *…

  • #7748: Decidedly warm outside, old boy

    Hit Jewel to get some sundries, including supplies for dinner. Gonna fire up the grill and make burgers, and if I'm feeling particularly plucky I…

  • #7747: Ahh, yes! This is what I needed!

    Work today featured me schlepping PCs across the warehouse at the near off-site. Back was feeling dandy this morning; by quitting time, not so much.…

  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.