dorchadas: (Office Space)
dorchadas ([personal profile] dorchadas) wrote2018-08-03 11:05 am

What if computers just did what we wanted them to do?

Time lost to stupid mistakes in the last week:
  • Typing 0 instead of 1, thus iterating over the wrong array and repeatedly getting "undefined": Three hours.

  • Misplacing a bracket, causing the loop to always return true: Two hours.

  • Checking the wrong function input, thus causing the function to always return false: One hour.
Programming languages are like real languages, in that a single small error totally screws everything up. I'm reminded of my Japanese lesson this week, where Aya-sensei got completely confused when I talked about making 塩鮭 (shiozake, "Salted salmon"), because , "salmon," and , "alcohol," are pronounced exactly the same and I was talking about leaving it out on the counter to thaw, so she thought I had left three bottles of booze on the counter.

After those three hours lost to 0 and 1, I wish I had that booze on the counter. Emoji Picard facepalm
throughdoors: Jonathan Haze as Seymore Krelboyne, who is pretending to be a dentist and pulling a tooth from Jack Nicholson as Wilbur Force. (Default)

[personal profile] throughdoors 2018-08-11 01:15 am (UTC)(link)
Agh, counters! Korean has those too and they are not my favorite to learn, though interesting to learn about.