dorchadas: (Office Space)
[personal profile] dorchadas
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

Date: 2018-Aug-04, Saturday 21:50 (UTC)
tuulentupa: Fairy on a butterfly (Eeyore's deep thoughts)
From: [personal profile] tuulentupa
Augh, those are so frustrating. Nearly worth of a full workday.
With real languages people often can figure out what the speaker was attempting to say. If only computers could do that.
...but yes, small errors can change the meaning quite radically. My favorite example in Finnish is tapaan (I meet) and tapan (I kill). So are you meeting your boyfriend, or are you having a really bad fight....? xD