
Anders' law: The longer you have spent trying to solve a particular problem in a programming language, the more likely it is that this programming language already has a built-in function to resolve just this problem.
In addition the built-in function is likely to be devilishly hard to find, but ridiculously easy to locate once someone have shown it to you.
Edit: I've done a few changes to the site today. Only one of which should be particularly visible for a few of you. The @font-face font I was using did not render at all well under Windows so I've change the font. I'm now using DroidSans and DroidSerif.
The other change is that I've stopped using the, in my eyes, unnecessary prefix www on all sections on the site. So now all links to my site should read http://andershoff.net instead of http://www.andershoff.net. Both should still work though.
More in the About section.
Comments (2)
Hvilken funksjon var det denne gangen?
funksjonen var for å finne (og endre) spesifikke xml-tagger som ligger på et bestemt sted i treet, med attributter og slik. python-funksjonen som var innebygd for å søke var xpathEval. Jeg leita en del på nettet men klarte aldri å legge merke til akkurat den funksjonen. Endte dermed med med å få nytte av kunnskapene mine fra algdat. Trolig kunne jeg spart meg noen timer jobb på å google litt mer grundig.