Constants can be useful, but constants can also be abused making code hard to read because you always have to go look somewhere else in the code just to understand what you are reading. This post is about a clear example of how constants can be used to make code much harder to maintain, particularly when they are arbitrary symbolic representations of something that is already supposed to act as a constant symbolic value. Read the rest of this entry »
Category Archives: Uncategorized
It is well recognized that long routines with a lot of nesting can create code that is difficult to read. Even if indented correctly, it is hard over many lines to accurately match the indent amount, particularly if indented a lot. Read the rest of this entry »
In making a simple authentication service, I ran into a myriad of strange, incomprehensible requirements that someone obviously through was a good security idea, but essentially misses the mark, has all the marks of “design by committee,” and makes everything else difficult. I am recording them here, because this seems like the kind of thing I am going to need to refer back to.
Having completely finished with the layout of my new book using XeLaTeX, I now want to make an eBook. The error messages with LaTeX are always completely cryptic, so you normally have to debug by adding a single line of source and rebuilding to see if that break anything. It is slow and tedious work, and this post contains a list of things I discovered using this method. Read the rest of this entry »
I write Java servlets a lot, and every single time I waste time trying to get the URL value that the servlet was invoked with in the right way. The methods provided on HTTPServletRequest simply are no the right ones for all situation. Read the rest of this entry »