Evil Java habits

| No Comments | No TrackBacks | Edit

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 getX and setX methods, in favor of properties (via the upcoming @property keyword, due for Java 1.5). I rather like this idea, because the first programming language I learned was Microsoft Visual Basic, in which properties are king.

I wonder what Michael and Mr. Hoar have to say about all this…

Thanks to Simon Willison for the story.

No TrackBacks

TrackBack URL: http://panel.1ec5.org/mt/mt-ping.fcgi/95

Leave a comment

About this Entry

This page contains a single entry by Minh Nguyễn published on September 8, 2003 7:39 PM.

No Fair! was the previous entry in this blog.

Killer app is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Archives

OpenID accepted here Learn more about OpenID