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. The Lounge
  3. Design Patterns

Design Patterns

Scheduled Pinned Locked Moved The Lounge
comdesignregexquestioncareer
44 Posts 27 Posters 0 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.
  • R R Giskard Reventlov

    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

    L Offline
    L Offline
    lewax00
    wrote on last edited by
    #2

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

    L D K B 4 Replies Last reply
    0
    • R R Giskard Reventlov

      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

      A Offline
      A Offline
      Andy Brummer
      wrote on last edited by
      #3

      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

      L 1 Reply Last reply
      0
      • R R Giskard Reventlov

        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

        I Offline
        I Offline
        Ian Shlasko
        wrote on last edited by
        #4

        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)

        C Sander RosselS 2 Replies Last reply
        0
        • L lewax00

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

          D Offline
          D Offline
          DaveAuld
          wrote on last edited by
          #5

          I think Sacha Barber wrote articles on both those subject........DI/IOCs[^]

          Dave Find Me On: Web|Facebook|Twitter|LinkedIn


          Folding Stats: Team CodeProject

          L I 2 Replies Last reply
          0
          • L lewax00

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

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

            As a recent student of MVVM I'm with you on this one. Some stuff is getting over architected.

            L 1 Reply Last reply
            0
            • I Ian Shlasko

              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)

              C Offline
              C Offline
              charlieg
              wrote on last edited by
              #7

              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

              1 Reply Last reply
              0
              • R R Giskard Reventlov

                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

                E Offline
                E Offline
                Espen Harlinn
                wrote on last edited by
                #8

                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

                Sander RosselS F 2 Replies Last reply
                0
                • I Ian Shlasko

                  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)

                  Sander RosselS Offline
                  Sander RosselS Offline
                  Sander Rossel
                  wrote on last edited by
                  #9

                  You're missing something between 2 and 3: ???

                  It's an OO world.

                  public class Naerling : Lazy<Person>{
                  public void DoWork(){ throw new NotImplementedException(); }
                  }

                  1 Reply Last reply
                  0
                  • E Espen Harlinn

                    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

                    Sander RosselS Offline
                    Sander RosselS Offline
                    Sander Rossel
                    wrote on last edited by
                    #10

                    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(); }
                    }

                    E 1 Reply Last reply
                    0
                    • L Lost User

                      As a recent student of MVVM I'm with you on this one. Some stuff is getting over architected.

                      L Offline
                      L Offline
                      lewax00
                      wrote on last edited by
                      #11

                      I'm still trying to figure out how/if that's any different than MVC. I like MVC for web applications...and that's about it.

                      K 1 Reply Last reply
                      0
                      • L lewax00

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

                        K Offline
                        K Offline
                        Karl Sanford
                        wrote on last edited by
                        #12

                        As someone who has to use DI/IoC, I can tell you that there is no example for (b) :^)

                        Be The Noise

                        L 1 Reply Last reply
                        0
                        • Sander RosselS Sander Rossel

                          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(); }
                          }

                          E Offline
                          E Offline
                          Espen Harlinn
                          wrote on last edited by
                          #13

                          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

                          L 1 Reply Last reply
                          0
                          • D DaveAuld

                            I think Sacha Barber wrote articles on both those subject........DI/IOCs[^]

                            Dave Find Me On: Web|Facebook|Twitter|LinkedIn


                            Folding Stats: Team CodeProject

                            L Offline
                            L Offline
                            lewax00
                            wrote on last edited by
                            #14

                            Ah, that's the first article on the subject I've fully understood, thanks :thumbsup: And now I realize I've been using DI in my own code, and interacting with IoC code for a while now...

                            1 Reply Last reply
                            0
                            • E Espen Harlinn

                              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

                              F Offline
                              F Offline
                              Forogar
                              wrote on last edited by
                              #15

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

                              E J 2 Replies Last reply
                              0
                              • E Espen Harlinn

                                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

                                L Offline
                                L Offline
                                lewax00
                                wrote on last edited by
                                #16

                                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:

                                E 1 Reply Last reply
                                0
                                • K Karl Sanford

                                  As someone who has to use DI/IoC, I can tell you that there is no example for (b) :^)

                                  Be The Noise

                                  L Offline
                                  L Offline
                                  lewax00
                                  wrote on last edited by
                                  #17

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

                                  M 1 Reply Last reply
                                  0
                                  • D DaveAuld

                                    I think Sacha Barber wrote articles on both those subject........DI/IOCs[^]

                                    Dave Find Me On: Web|Facebook|Twitter|LinkedIn


                                    Folding Stats: Team CodeProject

                                    I Offline
                                    I Offline
                                    Ian Shlasko
                                    wrote on last edited by
                                    #18

                                    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)

                                    D P M 3 Replies Last reply
                                    0
                                    • I Ian Shlasko

                                      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)

                                      D Offline
                                      D Offline
                                      DaveAuld
                                      wrote on last edited by
                                      #19

                                      Don't ask me there is only one pattern I full understand. Drink Beer, Drink Spirits, Drink More Beer, Drink More Spririts........fall over.....go home. :)

                                      Dave Find Me On: Web|Facebook|Twitter|LinkedIn


                                      Folding Stats: Team CodeProject

                                      M 1 Reply Last reply
                                      0
                                      • I Ian Shlasko

                                        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)

                                        P Offline
                                        P Offline
                                        PIEBALDconsult
                                        wrote on last edited by
                                        #20

                                        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 ;) .

                                        1 Reply Last reply
                                        0
                                        • A Andy Brummer

                                          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

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

                                          Finally, a pattern I can understand.

                                          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