Evil Java habits
Allen Holub has published two articles for JavaWorld discouraging the use of two habits my teacher taught us in Introduction to Programming and AP Computer Science A: the
extends keyword and accessor/modifier methods.
Holub suggests using the
implements keyword instead of
extends. What other changes to coding this may entail is unknown to me, because he uses terminology that might as well be Greek to me. Holub also discourages use of
setX methods, in favor of properties . I rather like this idea, because the first programming language I learned was Microsoft Visual Basic, in which properties are king.