The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Bad Assumptions

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Bad Assumptions Posted: Dec 12, 2006 5:03 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Bad Assumptions
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

In a response to Cees' post, this guy has the opposite viewpoint on "final":

One thing that made me go ‘whhueungh?!?’ is the conclusion that ‘final’ is a big mistake. I thoroughly don’t get this. Personal experience and generally accepted wisdom both agree that as a rule extending classes is a bad idea unless a class was designed for it in the first place. In fact, I litter ‘final’ statements all over the place. It mostly marks a class as: Don’t try and extend this! Just wrap it - to any developers that come after me. This works out fine. Where there is a generic element to extract (e.g. The functionality conveyed by java.util.Collection and java.util.Set where a HashSet is concerned) there’s usually an interface which gives you the option of wrapping. I wonder which classes he’s so bent on extending.

This assumes that any class is ever "done". I'd argue that such a beast simply doesn't exist, and that - as developers - we have absolutely no idea how the next guy down the pike who has to look atc our code is going to use it. We can guess, we can make assumptions - but that's about it. "Final" simply bakes in our assumptions, and gives that next guy the middle finger. Not with the intention of flipping him off, no - but flipping him off nevertheless.

Read: Bad Assumptions

Topic: George Bosworth at the Users Conference Previous Topic   Next Topic Topic: On average

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use