Had to work with some code I wrote a few years ago where I went maximally polymorphic for the hell of it - it was just as painful as when working with badly documented and poorly tested dynamically checked code.
That was my early experience. I still make those mistakes, but less frequently (or it takes longer for them to be recognized as mistakes). I think that part of the experience is in knowing and understanding patterns of generalization, and applying them early.
-
-
For example, it's very natural for me to add a type parameter with a new typeclass (and instance) instead of writing a concrete method.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
My coping mechanism is entirely different: I try to make the code as easy to understand and refactor as possible. Note that this only applies to code that I write as part of a team. When it's my own code, I do it purely for enjoyment and will go nuts if I feel like it.
-
I appreciate that style. I put a high value on having less code in each of my projects, and fewer interactions between my projects. It's such a blunt metric, having less code does seem to mean fewer bugs. (And also, I assert without proof that bugs are rarer in generic code!)
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.