by ericHosick · 14y ago · 0 comments
http://javadoc.bugaco.com/com/sun/java/swing/plaf/nimbus/Int...
(link from a recent HN post) (Edit: Just wanted to point out that the concept goes both ways).
If you look at the other class names in that package, it seems pretty clear that the name was in fact the result of a bug that duplicated prefixes. It almost certainly should have been InternalFrameTitlePaneMaximizeButtonPainter, which is admittedly pushing it but can be justified.
The only important factor of variables names is that they help with "documenting" the source code.
I just wanted to point out that it goes both ways.
Now where is that quote (just for fun):
"There are only two hard things in Computer Science: cache invalidation and naming things." - Phil Karlton