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. General Programming
  3. Design and Architecture
  4. What about design patterns?

What about design patterns?

Scheduled Pinned Locked Moved Design and Architecture
designquestion
10 Posts 5 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.
  • C Offline
    C Offline
    CPallini
    wrote on last edited by
    #1

    Do you use design patterns? I used Composite and Singleton, occasionally.

    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

    P M 2 Replies Last reply
    0
    • C CPallini

      Do you use design patterns? I used Composite and Singleton, occasionally.

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      When developing systems nowadays, it is very difficult to develop a system that doesn't have some forms of pattern applied to it. Developing applications is about good design and in the design process, you will discover what patterns apply.

      the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
      Deja View - the feeling that you've seen this post before.

      U 1 Reply Last reply
      0
      • C CPallini

        Do you use design patterns? I used Composite and Singleton, occasionally.

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

        M Offline
        M Offline
        Mairaaj Khan
        wrote on last edited by
        #3

        CPallini wrote:

        Do you use design patterns?

        Yes, and I used Singleton to restrict the number of connections to the database. After getting benefit from this, now I'm looking for other patterns too, so, recently started studying design patterns -- though its not regular. But during study, noted that self studying design patterns is a bit challenging to understand. How you covered (are covering) design patterns? Regards.

        ________________________________ Success is not something to wait for, its something to work for.

        C 1 Reply Last reply
        0
        • M Mairaaj Khan

          CPallini wrote:

          Do you use design patterns?

          Yes, and I used Singleton to restrict the number of connections to the database. After getting benefit from this, now I'm looking for other patterns too, so, recently started studying design patterns -- though its not regular. But during study, noted that self studying design patterns is a bit challenging to understand. How you covered (are covering) design patterns? Regards.

          ________________________________ Success is not something to wait for, its something to work for.

          C Offline
          C Offline
          CPallini
          wrote on last edited by
          #4

          uroojkhan wrote:

          How you covered (are covering) design patterns?

          Like you I'm self studying design patterns (I've the book of Gamma, Helm, Johnson, Vlissides) and, like you, I find them quite challenging. I think that if you need one pattern in you project, then you'll have a chance to deeply understand it. :)

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

          M 1 Reply Last reply
          0
          • C CPallini

            uroojkhan wrote:

            How you covered (are covering) design patterns?

            Like you I'm self studying design patterns (I've the book of Gamma, Helm, Johnson, Vlissides) and, like you, I find them quite challenging. I think that if you need one pattern in you project, then you'll have a chance to deeply understand it. :)

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

            M Offline
            M Offline
            Mairaaj Khan
            wrote on last edited by
            #5

            CPallini wrote:

            I've the book of Gamma, Helm, Johnson, Vlissides

            Thanks for the book (Design Patterns: Elements of Reusable Object-Oriented Software) reference.

            CPallini wrote:

            I think that if you need one pattern in you project, then you'll have a chance to deeply understand it.

            True. But before using patterns we must have know how about it.:) Thanks and Regards:rose:

            ________________________________ Success is not something to wait for, its something to work for.

            C D 2 Replies Last reply
            0
            • M Mairaaj Khan

              CPallini wrote:

              I've the book of Gamma, Helm, Johnson, Vlissides

              Thanks for the book (Design Patterns: Elements of Reusable Object-Oriented Software) reference.

              CPallini wrote:

              I think that if you need one pattern in you project, then you'll have a chance to deeply understand it.

              True. But before using patterns we must have know how about it.:) Thanks and Regards:rose:

              ________________________________ Success is not something to wait for, its something to work for.

              C Offline
              C Offline
              CPallini
              wrote on last edited by
              #6

              uroojkhan wrote:

              But before using patterns we must have know how about it.

              True, of course. But the book we wrote about is of big help, because it first identifies and clarifies the problem the pattern addresses, then explains the details of the pattern itself. Cheers :)

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

              1 Reply Last reply
              0
              • M Mairaaj Khan

                CPallini wrote:

                I've the book of Gamma, Helm, Johnson, Vlissides

                Thanks for the book (Design Patterns: Elements of Reusable Object-Oriented Software) reference.

                CPallini wrote:

                I think that if you need one pattern in you project, then you'll have a chance to deeply understand it.

                True. But before using patterns we must have know how about it.:) Thanks and Regards:rose:

                ________________________________ Success is not something to wait for, its something to work for.

                D Offline
                D Offline
                Divyang Mithaiwala
                wrote on last edited by
                #7

                Hi,

                uroojkhan wrote:

                Thanks for the book (Design Patterns: Elements of Reusable Object-Oriented Software) reference.

                You mau refer this book from here & here.


                regards, Divyang Mithaiwala Software Engineer

                M 1 Reply Last reply
                0
                • D Divyang Mithaiwala

                  Hi,

                  uroojkhan wrote:

                  Thanks for the book (Design Patterns: Elements of Reusable Object-Oriented Software) reference.

                  You mau refer this book from here & here.


                  regards, Divyang Mithaiwala Software Engineer

                  M Offline
                  M Offline
                  Mairaaj Khan
                  wrote on last edited by
                  #8

                  Many thanks for the valuable links. I'm still searching the book because its not available in the local market:(. Regards:rose:

                  ________________________________ Success is not something to wait for, its something to work for.

                  1 Reply Last reply
                  0
                  • P Pete OHanlon

                    When developing systems nowadays, it is very difficult to develop a system that doesn't have some forms of pattern applied to it. Developing applications is about good design and in the design process, you will discover what patterns apply.

                    the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
                    Deja View - the feeling that you've seen this post before.

                    U Offline
                    U Offline
                    User 12171615
                    wrote on last edited by
                    #9

                    Focus your design effort on the highest level business logic and unique requirements. 'Patterns' are a trap. Specifically, if you have some message coming in on your port, Your design will consist of a description of that message, and the action taken. Whether your code 'Polls' or uses 'Events' is irrelevant to this design. At one layer or another we are ALWAYS polling: These are your options: Write code that 'polls'. Use a library that polls on another thread and raises an event to your code. Use a library that uses lower level hardware that polls at an embedded level. Use a library, that uses hardware, that uses a chip that raises an interrupt as a result of the microprocessor 'polling' pins very quickly. If your highest level design is agnostic of 'design' patterns, then it is done right. It can be implemented successfully by any combination of language, or 'pattern'

                    P 1 Reply Last reply
                    0
                    • U User 12171615

                      Focus your design effort on the highest level business logic and unique requirements. 'Patterns' are a trap. Specifically, if you have some message coming in on your port, Your design will consist of a description of that message, and the action taken. Whether your code 'Polls' or uses 'Events' is irrelevant to this design. At one layer or another we are ALWAYS polling: These are your options: Write code that 'polls'. Use a library that polls on another thread and raises an event to your code. Use a library that uses lower level hardware that polls at an embedded level. Use a library, that uses hardware, that uses a chip that raises an interrupt as a result of the microprocessor 'polling' pins very quickly. If your highest level design is agnostic of 'design' patterns, then it is done right. It can be implemented successfully by any combination of language, or 'pattern'

                      P Offline
                      P Offline
                      Pete OHanlon
                      wrote on last edited by
                      #10

                      Two things. Why are you replying on a very old comment? What relevance does polling have to do with the comment?

                      Advanced TypeScript Programming Projects

                      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