Design Patterns
-
Sometimes, when I read pattern definitions, I can imagine the author/s sitting there going how can we make this reasonably simple idea that's been around for years and years in various forms sound really, really smart and, at the same time, give it a really funky name like 'The Strategy Pattern' or 'The Chain of Responsibility Pattern'? Or how can we make this pile of nonsensical verbiage sound as if it actually does something meaningful? Don't get me wrong; I rather like patterns or, at least, some of them. I just find it amusing that some basic ideas suddenly get popular because they get a groovy makeover.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me
mark merrens wrote:
how can we make this pile of nonsensical verbiage sound as if it actually does something meaningful?
I'm still trying to figure out IoC and dependency injection...can't seem to find any examples that a) make sense to someone with a short attention span b) provide a realistic example of why I should care but there seems to be a big fuss about them, so I must be missing something...
-
Sometimes, when I read pattern definitions, I can imagine the author/s sitting there going how can we make this reasonably simple idea that's been around for years and years in various forms sound really, really smart and, at the same time, give it a really funky name like 'The Strategy Pattern' or 'The Chain of Responsibility Pattern'? Or how can we make this pile of nonsensical verbiage sound as if it actually does something meaningful? Don't get me wrong; I rather like patterns or, at least, some of them. I just find it amusing that some basic ideas suddenly get popular because they get a groovy makeover.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me
So when I started my current job, one of the developers who was on his way out told me about their global variable pattern. The pattern was that all the names were prefixed with g_. :-\
Curvature of the Mind now with 3D
-
Sometimes, when I read pattern definitions, I can imagine the author/s sitting there going how can we make this reasonably simple idea that's been around for years and years in various forms sound really, really smart and, at the same time, give it a really funky name like 'The Strategy Pattern' or 'The Chain of Responsibility Pattern'? Or how can we make this pile of nonsensical verbiage sound as if it actually does something meaningful? Don't get me wrong; I rather like patterns or, at least, some of them. I just find it amusing that some basic ideas suddenly get popular because they get a groovy makeover.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me
Phase 1: Pick something that everyone already knows about Phase 2: Give it a cool name and publish an overpriced hardcover book about it Phase 3: Profit!
Proud to have finally moved to the A-Ark. Which one are you in?
Author of the Guardians Saga (Sci-Fi/Fantasy novels) -
mark merrens wrote:
how can we make this pile of nonsensical verbiage sound as if it actually does something meaningful?
I'm still trying to figure out IoC and dependency injection...can't seem to find any examples that a) make sense to someone with a short attention span b) provide a realistic example of why I should care but there seems to be a big fuss about them, so I must be missing something...
-
mark merrens wrote:
how can we make this pile of nonsensical verbiage sound as if it actually does something meaningful?
I'm still trying to figure out IoC and dependency injection...can't seem to find any examples that a) make sense to someone with a short attention span b) provide a realistic example of why I should care but there seems to be a big fuss about them, so I must be missing something...
-
Phase 1: Pick something that everyone already knows about Phase 2: Give it a cool name and publish an overpriced hardcover book about it Phase 3: Profit!
Proud to have finally moved to the A-Ark. Which one are you in?
Author of the Guardians Saga (Sci-Fi/Fantasy novels)Phase 2: Give it a cool name, write a dissertation on it, receive PhD. is more like it I think
Charlie Gilley You're going to tell me what I want to know, or I'm going to beat you to death in your own house. "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
-
Sometimes, when I read pattern definitions, I can imagine the author/s sitting there going how can we make this reasonably simple idea that's been around for years and years in various forms sound really, really smart and, at the same time, give it a really funky name like 'The Strategy Pattern' or 'The Chain of Responsibility Pattern'? Or how can we make this pile of nonsensical verbiage sound as if it actually does something meaningful? Don't get me wrong; I rather like patterns or, at least, some of them. I just find it amusing that some basic ideas suddenly get popular because they get a groovy makeover.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me
Giving stuff a name kind of helps when you want to talk about it.
Espen Harlinn Principal Architect, Software - Goodtech Projects & Services AS My LinkedIn Profile
-
Phase 1: Pick something that everyone already knows about Phase 2: Give it a cool name and publish an overpriced hardcover book about it Phase 3: Profit!
Proud to have finally moved to the A-Ark. Which one are you in?
Author of the Guardians Saga (Sci-Fi/Fantasy novels)You're missing something between 2 and 3: ???
It's an OO world.
public class Naerling : Lazy<Person>{
public void DoWork(){ throw new NotImplementedException(); }
} -
Giving stuff a name kind of helps when you want to talk about it.
Espen Harlinn Principal Architect, Software - Goodtech Projects & Services AS My LinkedIn Profile
Indeed, today I wanted to talk about that thing which does that thing for the other thing... People looked puzzled, I think I'll write a book about those things.
It's an OO world.
public class Naerling : Lazy<Person>{
public void DoWork(){ throw new NotImplementedException(); }
} -
As a recent student of MVVM I'm with you on this one. Some stuff is getting over architected.
-
mark merrens wrote:
how can we make this pile of nonsensical verbiage sound as if it actually does something meaningful?
I'm still trying to figure out IoC and dependency injection...can't seem to find any examples that a) make sense to someone with a short attention span b) provide a realistic example of why I should care but there seems to be a big fuss about them, so I must be missing something...
As someone who has to use DI/IoC, I can tell you that there is no example for (b) :^)
Be The Noise
-
Indeed, today I wanted to talk about that thing which does that thing for the other thing... People looked puzzled, I think I'll write a book about those things.
It's an OO world.
public class Naerling : Lazy<Person>{
public void DoWork(){ throw new NotImplementedException(); }
}Naerling wrote:
I think I'll write a book about those things that stuff
It's called stuff, if we don't use the same name, how can we expect people to understand what we are going on about?
Espen Harlinn Principal Architect, Software - Goodtech Projects & Services AS My LinkedIn Profile
-
-
Giving stuff a name kind of helps when you want to talk about it.
Espen Harlinn Principal Architect, Software - Goodtech Projects & Services AS My LinkedIn Profile
Unless it's a meaningless name... On many occasions, usually during job interviews, I have been asked about some "named" technology and my answer has usually had to be "I've heard of it; tell me what it is and I'll tell you if I've used it". Often I find I have been using some pattern for a long time (in a nameless kind of way) and only when someone puts a name on it do I suddenly find myself feeling ignorant! The patterns I know are the "thingy" and the "other thingy" and the "singleton" (I've worked out roughly what that one was)! ;P ...by the way - I usually got the job!
- Life in the fast lane is only fun if you live in a country with no speed limits. - Of all the things I have lost, it is my mind that I miss the most. - I vaguely remember having a good memory...
-
Naerling wrote:
I think I'll write a book about those things that stuff
It's called stuff, if we don't use the same name, how can we expect people to understand what we are going on about?
Espen Harlinn Principal Architect, Software - Goodtech Projects & Services AS My LinkedIn Profile
Espen Harlinn wrote:
if we don't use the same name, how can we expect people to understand what we are going on about?
Reminds me of what I'm currently working on...our team refers to it as one thing, the guy who wrote it refers to it as another in his commits, and in the code it has an unrelated third name. Took a while to figure out WHERE it was, still trying to figure out how to make the necessary changes... :doh:
-
As someone who has to use DI/IoC, I can tell you that there is no example for (b) :^)
Be The Noise
Now that I've managed to get some idea of what it is (and now have a name for the exact thing I hate most about the code I have to work with), I can think of good applications for DI (but really, isn't that covered by interfaces/abstract classes?), but IoC just makes things difficult to maintain :doh: Where is this class? Oh...I don't get to know because it's hidden by the IoC container...awesome...
-
Huh... So... In English, DI/IOC = "Choose interface implementations in config files" Yeah, I've done that before, without the buzzwords :)
Proud to have finally moved to the A-Ark. Which one are you in?
Author of the Guardians Saga (Sci-Fi/Fantasy novels) -
Huh... So... In English, DI/IOC = "Choose interface implementations in config files" Yeah, I've done that before, without the buzzwords :)
Proud to have finally moved to the A-Ark. Which one are you in?
Author of the Guardians Saga (Sci-Fi/Fantasy novels) -
Huh... So... In English, DI/IOC = "Choose interface implementations in config files" Yeah, I've done that before, without the buzzwords :)
Proud to have finally moved to the A-Ark. Which one are you in?
Author of the Guardians Saga (Sci-Fi/Fantasy novels)Ian Shlasko wrote:
"Choose interface implementations in config files"
Oh, that! Yeah, I do that. The first time was in a C program -- function pointers ;) .
-
So when I started my current job, one of the developers who was on his way out told me about their global variable pattern. The pattern was that all the names were prefixed with g_. :-\
Curvature of the Mind now with 3D