Click here to Skip to main content
15,898,588 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
GeneralRe: Design Patterns: Magic or Myth? Pin
Zombie Code Monkey9-Jan-14 2:41
Zombie Code Monkey9-Jan-14 2:41 
GeneralRe: Design Patterns: Magic or Myth? Pin
Bill_Hallahan8-Jan-14 16:03
Bill_Hallahan8-Jan-14 16:03 
GeneralRe: Design Patterns: Magic or Myth? Pin
Rob Grainger9-Jan-14 1:40
Rob Grainger9-Jan-14 1:40 
GeneralRe: Design Patterns: Magic or Myth? Pin
TheGreatAndPowerfulOz9-Jan-14 4:35
TheGreatAndPowerfulOz9-Jan-14 4:35 
GeneralRe: Design Patterns: Magic or Myth? Pin
Rob Grainger9-Jan-14 7:15
Rob Grainger9-Jan-14 7:15 
GeneralRe: Design Patterns: Magic or Myth? Pin
TheGreatAndPowerfulOz9-Jan-14 7:25
TheGreatAndPowerfulOz9-Jan-14 7:25 
GeneralRe: Design Patterns: Magic or Myth? Pin
Rob Grainger9-Jan-14 7:27
Rob Grainger9-Jan-14 7:27 
GeneralRe: Design Patterns: Magic or Myth? Pin
Bill_Hallahan9-Jan-14 15:11
Bill_Hallahan9-Jan-14 15:11 
Rob Grainger quoting Alan Kay:
Rob Grainger wrote:
But the bug in trying to do that in computing is the assumption that we know anything at all about programming.

That might be a valid point in the future, but the patterns in "Design Patterns" are relevant to right now.

Most developers typically use at least one of the patterns, such as Factory, Abstract Factory; Builder; Command; Memento; Observer; Visitor; Strategy; Flyweight; and other patterns that I've forgotten, even if they don't recognize the pattern. So, giving these patterns a name is important because it allows communicating, and thinking about, designs in ways that were not possible before. It's good to have words for patterns that developers often use today.

Rob Grainger wrote:
The GoF book, for example includes the Singleton pattern, which should really be an Anti-Patterns book, as it introduces static dependencies and complicates testing (a global variable by any other name).

I have yet to see a better solution to enforce allowing only one instance of a class type. That is the point of a Singleton. The pattern has disadvantages, and some are listed in the book, along with the advantages. I've seen it used successfully in a very large code base and there were no problems due to it being used.

modified 9-Jan-14 21:30pm.

GeneralRe: Design Patterns: Magic or Myth? Pin
Chris Losinger9-Jan-14 15:16
professionalChris Losinger9-Jan-14 15:16 
NewsConfirmed: Microsoft reveals BUILD 2014 conference for April 2-4 Pin
Kent Sharkey8-Jan-14 12:48
staffKent Sharkey8-Jan-14 12:48 
NewsSecurity Essentials for Windows XP will die when the OS does Pin
Kent Sharkey8-Jan-14 11:49
staffKent Sharkey8-Jan-14 11:49 
GeneralRe: Security Essentials for Windows XP will die when the OS does Pin
Bassam Abdul-Baki9-Jan-14 6:14
professionalBassam Abdul-Baki9-Jan-14 6:14 
NewsGoogle smacked with fine for violating privacy laws Pin
Kent Sharkey8-Jan-14 11:48
staffKent Sharkey8-Jan-14 11:48 
NewsThe most in-demand tech skills: Why Java and the classics ruled 2013 Pin
Kent Sharkey8-Jan-14 11:47
staffKent Sharkey8-Jan-14 11:47 
GeneralRe: The most in-demand tech skills: Why Java and the classics ruled 2013 Pin
Rob Grainger9-Jan-14 3:15
Rob Grainger9-Jan-14 3:15 
NewsCES: The gadgets, the gizmos Pin
Jason Cardoza8-Jan-14 9:30
Jason Cardoza8-Jan-14 9:30 
NewsIf you can measure IT you can make IT better Pin
Kent Sharkey8-Jan-14 8:19
staffKent Sharkey8-Jan-14 8:19 
GeneralRe: If you can measure IT you can make IT better Pin
R. Giskard Reventlov8-Jan-14 8:25
R. Giskard Reventlov8-Jan-14 8:25 
NewsReport: Bill Gates to be 'much more involved' in Microsoft with new CEO Pin
Kent Sharkey8-Jan-14 8:14
staffKent Sharkey8-Jan-14 8:14 
JokeMessage Removed Pin
8-Jan-14 10:08
professionalN_tro_P8-Jan-14 10:08 
GeneralRe: Report: Bill Gates to be 'much more involved' in Microsoft with new CEO Pin
Kent Sharkey8-Jan-14 13:38
staffKent Sharkey8-Jan-14 13:38 
NewsThe rise and fall of languages in 2013 Pin
Kent Sharkey8-Jan-14 7:11
staffKent Sharkey8-Jan-14 7:11 
GeneralRe: The rise and fall of languages in 2013 Pin
newton.saber8-Jan-14 10:08
newton.saber8-Jan-14 10:08 
GeneralRe: The rise and fall of languages in 2013 Pin
Kent Sharkey8-Jan-14 13:38
staffKent Sharkey8-Jan-14 13:38 
GeneralRe: The rise and fall of languages in 2013 Pin
  Forogar  9-Jan-14 5:30
professional  Forogar  9-Jan-14 5:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.