Got an important chunk of code working today, but it did not go easy.
First, although I have done more complicated stuff many times, I hit a mental block on implementing an algorithm that was not that complicated. Now that it is done, and I see how little code it actually was, its a little embarrassing how long it took. But its done now and seems to work, so I am declaring victory. Sometimes the brain just does not take to a task.
Second, in debugging, I hit a problem that was caused by the fact that I coded (a eq b) instead of (a ne b); needless to say the code was doing backwards to what I intended. These things will happen, but I stared at it for about a half hour before I saw it. Oops...
First, although I have done more complicated stuff many times, I hit a mental block on implementing an algorithm that was not that complicated. Now that it is done, and I see how little code it actually was, its a little embarrassing how long it took. But its done now and seems to work, so I am declaring victory. Sometimes the brain just does not take to a task.
Second, in debugging, I hit a problem that was caused by the fact that I coded (a eq b) instead of (a ne b); needless to say the code was doing backwards to what I intended. These things will happen, but I stared at it for about a half hour before I saw it. Oops...
no subject
Date: 2004-01-14 05:24 pm (UTC)