Those little things that trips you

time to read 2 min | 267 words

There is a message in Boo about the problem of allowing assignment in conditinals:

if a = b:
   doSomething()

I liked the way Christoph pharsed the issue: Now even if you don't notice this yourself, at least the compiler will warn you, thus saving you from hours of tedious debugging. (Ok, maybe I am exaggerating, but let's assume the worst case.)

One thing that I noticed that when I'm developing, most of the time is not dedicated to design or writing code, it's dedicated to those little problems that I run into. For instance, I mistakenly defined a one to many relationship as a serialaziable relationship (meaning that the class is serialized to a BLOB in the DB). I wasted hours on that thing, until I finally looked at what was happening and it hit me. Another thing was the associtaions, which took a while to resolve.

Right now I wasted a lot of time on trying to get Subverion merging to work. There is a lot of documentation about it, but I do it for the first time, so it's a "learning experiance"*. How much time do you find yourself dedicate to those side-tracks, those implementation details? Any suggestions on how to reduce this?

* Nice figure of speach to banging my head on the wall :-)