Click here to Skip to main content
15,905,967 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I have a horrible feeling I've been using a pattern for years... Pin
Jörgen Andersson24-Nov-17 8:08
professionalJörgen Andersson24-Nov-17 8:08 
GeneralRe: I have a horrible feeling I've been using a pattern for years... Pin
OriginalGriff24-Nov-17 4:42
mveOriginalGriff24-Nov-17 4:42 
GeneralRe: I have a horrible feeling I've been using a pattern for years... Pin
Jörgen Andersson24-Nov-17 8:40
professionalJörgen Andersson24-Nov-17 8:40 
GeneralRe: I have a horrible feeling I've been using a pattern for years... Pin
PIEBALDconsult24-Nov-17 4:51
mvePIEBALDconsult24-Nov-17 4:51 
GeneralRe: I have a horrible feeling I've been using a pattern for years... Pin
Eytukan24-Nov-17 5:10
Eytukan24-Nov-17 5:10 
QuestionRe: I have a horrible feeling I've been using a pattern for years... Pin
Eddy Vluggen24-Nov-17 5:20
professionalEddy Vluggen24-Nov-17 5:20 
AnswerRe: I have a horrible feeling I've been using a pattern for years... Pin
OriginalGriff24-Nov-17 5:44
mveOriginalGriff24-Nov-17 5:44 
GeneralRe: I have a horrible feeling I've been using a pattern for years... Pin
Eddy Vluggen24-Nov-17 6:04
professionalEddy Vluggen24-Nov-17 6:04 
OriginalGriff wrote:
Because most patterns are a waste of time, but worshipped as the One True Holy Grail of Computing by those that learn it. And then force all applications they write to fit that pattern regardless of the appropriateness.
..you are interacting with the wrong kind of people. Regardless of your silver bullet, I will not follow in the procession.

"Most patterns"? Which are you referring to? They're used throughout the .NET Framework, from factories and adapters to decorators. Just my favourite, the memento, isn't included (afaik, which doesn't mean much).

A pattern is simply a formalized piece of code that solves a problem. You have a list of those in your intellisense, don't you? Those snippets are formalized pieces of code that follow a specific pattern and that have a name.

Now how does one take one of those templated pieces of code and make a holy grail of it? Is it some consultant, yammering to implement an event-receiver in C#?

Code needs to be kissable clean; no patterns "just" to show of that you know something, the simplest solution is always the preferred one. But please, do follow the pattern of wrapping your connections and commands in a using-clause, do use parameterized queries, and please, use the factory-method that is included in the connection object to create your command. It saves a lot of time when rewriting to another provider.

..maybe I should just put my rambling in an article, as a lot of devs that I respect are not too fond of patterns for some weird reason. Tell me, do you vary your code to show a form, or does that happen to be another unnamed pattern that you repeat? Roll eyes | :rolleyes:
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

GeneralRe: I have a horrible feeling I've been using a pattern for years... Pin
lopatir24-Nov-17 6:34
lopatir24-Nov-17 6:34 
GeneralRe: I have a horrible feeling I've been using a pattern for years... Pin
Nelek24-Nov-17 8:56
protectorNelek24-Nov-17 8:56 
GeneralRe: I have a horrible feeling I've been using a pattern for years... Pin
BillWoodruff25-Nov-17 4:51
professionalBillWoodruff25-Nov-17 4:51 
GeneralRe: I have a horrible feeling I've been using a pattern for years... Pin
Eddy Vluggen25-Nov-17 6:25
professionalEddy Vluggen25-Nov-17 6:25 
GeneralRe: I have a horrible feeling I've been using a pattern for years... Pin
killbot500026-Nov-17 21:06
killbot500026-Nov-17 21:06 
GeneralRe: I have a horrible feeling I've been using a pattern for years... Pin
Eddy Vluggen26-Nov-17 23:07
professionalEddy Vluggen26-Nov-17 23:07 
GeneralRe: I have a horrible feeling I've been using a pattern for years... Pin
killbot50001-Dec-17 4:19
killbot50001-Dec-17 4:19 
GeneralRe: I have a horrible feeling I've been using a pattern for years... Pin
Eddy Vluggen1-Dec-17 5:25
professionalEddy Vluggen1-Dec-17 5:25 
GeneralRe: I have a horrible feeling I've been using a pattern for years... Pin
Eddy Vluggen2-Dec-17 4:56
professionalEddy Vluggen2-Dec-17 4:56 
GeneralRe: I have a horrible feeling I've been using a pattern for years... Pin
Kirk 1038982127-Nov-17 4:47
Kirk 1038982127-Nov-17 4:47 
GeneralRe: I have a horrible feeling I've been using a pattern for years... Pin
Nagy Vilmos24-Nov-17 6:05
professionalNagy Vilmos24-Nov-17 6:05 
JokeRe: I have a horrible feeling I've been using a pattern for years... Pin
Duncan Edwards Jones24-Nov-17 6:28
professionalDuncan Edwards Jones24-Nov-17 6:28 
GeneralRe: I have a horrible feeling I've been using a pattern for years... Pin
OriginalGriff24-Nov-17 6:41
mveOriginalGriff24-Nov-17 6:41 
PraiseRe: I have a horrible feeling I've been using a pattern for years... Pin
Jeremy Falcon24-Nov-17 13:12
professionalJeremy Falcon24-Nov-17 13:12 
GeneralRe: I have a horrible feeling I've been using a pattern for years... Pin
BillWoodruff25-Nov-17 5:01
professionalBillWoodruff25-Nov-17 5:01 
GeneralRe: I have a horrible feeling I've been using a pattern for years... Pin
Marc Clifton24-Nov-17 8:59
mvaMarc Clifton24-Nov-17 8:59 
GeneralRe: I have a horrible feeling I've been using a pattern for years... Pin
CodeWraith25-Nov-17 1:54
CodeWraith25-Nov-17 1:54 

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.