What if computers just did what we wanted them to do?
2018-Aug-03, Friday 11:05![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Time lost to stupid mistakes in the last week:
After those three hours lost to 0 and 1, I wish I had that booze on the counter.
- 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.
After those three hours lost to 0 and 1, I wish I had that booze on the counter.

no subject
Date: 2018-Aug-03, Friday 16:56 (UTC)That sounds really frustrating!! I'm glad you eventually found them though haha
no subject
Date: 2018-Aug-03, Friday 18:25 (UTC)And yeah, the 0/1 thing was especially infuriating! But I think learning a new language (and living in a country where I didn't speak the language well) helped condition me to frustration enough that I can overcome it. Not without sometimes feeling like an idiot, though...
This Three Panel Soul comic is an excellent summary of how programming goes.
no subject
Date: 2018-Aug-03, Friday 19:23 (UTC)In Japanese, other than the confusion about which word you meant, was there something you should have said to make your meaning clear?
no subject
Date: 2018-Aug-03, Friday 19:42 (UTC)1) Use the right counter. I think I just used the generic counter for three objects, when I should have used the counter for fish, which is clearly different from the counter for bottles and would have distinguished them.
2) Say shake, an alternate-but-also-dictionary-correct pronunciation for salmon but not for alcohol. Some people say sake, some people say shake, and I have no idea what the distinction is, if there is one, or why some people use one or the other. But it would have make it obvious.
no subject
Date: 2018-Aug-11, Saturday 01:15 (UTC)no subject
Date: 2018-Aug-04, Saturday 21:50 (UTC)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
no subject
Date: 2018-Aug-06, Monday 18:31 (UTC)I looked around and I also found this example from someone talking about studying Finnish: Long vowels have caused me trouble in Japanese before (shujin, "husband"; shuujin, "prisoner"), so it's a little gratifying to see that the pain is more wide-spread than I thought.