“The cardinal rule of writing unmaintainable code is to specify each fact in as many places as possible and in as many ways as possible. ”
“编写不可维护代码的主要原则就是:在尽可能多的地方,以尽可能多的方式来指明每一个事实。”
~ Roedy
// note subtle spelling change Bubblegumb = new Bubblegom();不幸的是,++ 操作符的流行,使得象下面这样的伪冗余代码很难轻易得手:
// note subtle spelling change swimmer = swimner + 1;
myPanel.add( getMyButton() ); private JButton getMyButton() { return myButton; }一个可能看不出有多有趣,别着急,总有一天会的。