in reply to "Point, not, point, not, point, watch the beat!"
in thread mile/kilometer converter (category: stupid regex tricks)

There's nothing "tricky" about your code at all, other than the fact that it is messy. And you don't do anything spectacular with the regex either; the right side of a substituiton is a string, not a regex.

Also, most code is not worth commenting. In fact, in a perfect world, no code would need to be commented. Code itself should be self-documenting; algorithms and structure deserve comments and documentation, not code.

  • Comment on Re: "Point, not, point, not, point, watch the beat!"