Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Soapbox
  4. Builder Pattern or Template Class?

Builder Pattern or Template Class?

Scheduled Pinned Locked Moved The Soapbox
csharpcomdesignregexarchitecture
10 Posts 7 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    David A Gray
    wrote on last edited by
    #1

    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

    S L F 3 Replies Last reply
    0
    • D David A Gray

      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

      S Offline
      S Offline
      Slacker007
      wrote on last edited by
      #2

      wrong forum. Again, the soapbox is for degenerates who are bat shit crazy nit wits. :cool:

      Z L 2 Replies Last reply
      0
      • S Slacker007

        wrong forum. Again, the soapbox is for degenerates who are bat shit crazy nit wits. :cool:

        Z Offline
        Z Offline
        ZurdoDev
        wrote on last edited by
        #3

        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.

        S 1 Reply Last reply
        0
        • S Slacker007

          wrong forum. Again, the soapbox is for degenerates who are bat shit crazy nit wits. :cool:

          L Offline
          L Offline
          Le centriste
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • Z ZurdoDev

            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.

            S Offline
            S Offline
            Slacker007
            wrote on last edited by
            #5

            :laugh: :thumbsup:

            1 Reply Last reply
            0
            • D David A Gray

              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

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              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.

              T 1 Reply Last reply
              0
              • D David A Gray

                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

                F Offline
                F Offline
                F ES Sitecore
                wrote on last edited by
                #7

                How could people possibly use the builder pattern unless the world was flat? Think about it.

                1 Reply Last reply
                0
                • L Lost User

                  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.

                  T Offline
                  T Offline
                  TheGreatAndPowerfulOz
                  wrote on last edited by
                  #8

                  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

                  L 1 Reply Last reply
                  0
                  • T TheGreatAndPowerfulOz

                    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

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #9

                    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.

                    T 1 Reply Last reply
                    0
                    • L Lost User

                      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.

                      T Offline
                      T Offline
                      TheGreatAndPowerfulOz
                      wrote on last edited by
                      #10

                      :-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

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups