Builder Pattern or Template Class?
-
There seems to be some debate about whether the design pattern discussed in [Design patterns in C# – The builder pattern | Endjin blog](https://blogs.endjin.com/2019/06/design-patterns-in-c-the-builder-pattern/) is really the Builder pattern or the Template pattern. Though I can't decide for sure, it certainly doesn't look anything like any of the classes that I've used that called themselves Builders. What comes to mind instead is something like [Connection String Builders | Microsoft Docs](https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/connection-string-builders).
David A. Gray Delivering Solutions for the Ages, One Problem at a Time Interpreting the Fundamental Principle of Tabular Reporting
-
There seems to be some debate about whether the design pattern discussed in [Design patterns in C# – The builder pattern | Endjin blog](https://blogs.endjin.com/2019/06/design-patterns-in-c-the-builder-pattern/) is really the Builder pattern or the Template pattern. Though I can't decide for sure, it certainly doesn't look anything like any of the classes that I've used that called themselves Builders. What comes to mind instead is something like [Connection String Builders | Microsoft Docs](https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/connection-string-builders).
David A. Gray Delivering Solutions for the Ages, One Problem at a Time Interpreting the Fundamental Principle of Tabular Reporting
wrong forum. Again, the soapbox is for degenerates who are bat shit crazy nit wits. :cool:
-
wrong forum. Again, the soapbox is for degenerates who are bat shit crazy nit wits. :cool:
Slacker007 wrote:
wrong forum.
No way. Only left-leaning idiots believe in the Template Class. All sane people follow the Builder Pattern and will vote for it again in 2020.
Social Media - A platform that makes it easier for the crazies to find each other. Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.
-
wrong forum. Again, the soapbox is for degenerates who are bat shit crazy nit wits. :cool:
Slacker007 wrote:
Again, the soapbox is for degenerates who are bat sh*t crazy nit wits.
This is one of the rare times I agreed with you.
-
Slacker007 wrote:
wrong forum.
No way. Only left-leaning idiots believe in the Template Class. All sane people follow the Builder Pattern and will vote for it again in 2020.
Social Media - A platform that makes it easier for the crazies to find each other. Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.
:laugh: :thumbsup:
-
There seems to be some debate about whether the design pattern discussed in [Design patterns in C# – The builder pattern | Endjin blog](https://blogs.endjin.com/2019/06/design-patterns-in-c-the-builder-pattern/) is really the Builder pattern or the Template pattern. Though I can't decide for sure, it certainly doesn't look anything like any of the classes that I've used that called themselves Builders. What comes to mind instead is something like [Connection String Builders | Microsoft Docs](https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/connection-string-builders).
David A. Gray Delivering Solutions for the Ages, One Problem at a Time Interpreting the Fundamental Principle of Tabular Reporting
A war on the strategy vs. the template would have sounded more reasonable. A builder is used when you build (!) a complex result. A template is not a creational, but a behavioural pattern, used to add functionality without changing the source-class. MS knows its patterns, it shows in the C# framework.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
-
There seems to be some debate about whether the design pattern discussed in [Design patterns in C# – The builder pattern | Endjin blog](https://blogs.endjin.com/2019/06/design-patterns-in-c-the-builder-pattern/) is really the Builder pattern or the Template pattern. Though I can't decide for sure, it certainly doesn't look anything like any of the classes that I've used that called themselves Builders. What comes to mind instead is something like [Connection String Builders | Microsoft Docs](https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/connection-string-builders).
David A. Gray Delivering Solutions for the Ages, One Problem at a Time Interpreting the Fundamental Principle of Tabular Reporting
How could people possibly use the builder pattern unless the world was flat? Think about it.
-
A war on the strategy vs. the template would have sounded more reasonable. A builder is used when you build (!) a complex result. A template is not a creational, but a behavioural pattern, used to add functionality without changing the source-class. MS knows its patterns, it shows in the C# framework.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
Eddy Vluggen wrote:
MS knows its patterns, it shows in the C# framework.
I can't decide if you're joking... oh wait, there's nothing called the "C# framework"...
#SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
-
Eddy Vluggen wrote:
MS knows its patterns, it shows in the C# framework.
I can't decide if you're joking... oh wait, there's nothing called the "C# framework"...
#SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
TheGreatAndPowerfulOz wrote:
I can't decide if you're joking... oh wait, there's nothing called the "C# framework"...
I'm not.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
-
TheGreatAndPowerfulOz wrote:
I can't decide if you're joking... oh wait, there's nothing called the "C# framework"...
I'm not.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
:-D :thumbsup:
#SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun