Thread: Where and how to learn about design patterns ?

  1. #1
    Registered User MartinR's Avatar
    Join Date
    Dec 2013
    Posts
    200

    Lightbulb Where and how to learn about design patterns ?

    Hello,


    I would like to get some advices about learning OO programming. Things like design patterns and other OO technics. How and where to learn ? I understand concepts like inheritance, polymorphism, encapsulation quite well, but what should I do next ? You probably going to advice me "write code", while it is very good advice, how can I check my work, literally how to write my programs in a good OO way, and check if it was done correctly ?


    PS: What kind of programs I should write to begin with OO concepts ? I mean object oriented "Hello world" programs


    I am looking forward for very good advices


    Thanks a lot!

  2. #2
    misoturbutc Hodor's Avatar
    Join Date
    Nov 2013
    Posts
    1,787
    First, please define "OO programming"


  3. #3
    Registered User MartinR's Avatar
    Join Date
    Dec 2013
    Posts
    200
    Quote Originally Posted by Hodor View Post
    First, please define "OO programming"

    Heh, I was thinking about object oriented programming, what else Hodor? So the kind of programming where you define objects, then create instances of them and finally use them accordingly.

  4. #4
    misoturbutc Hodor's Avatar
    Join Date
    Nov 2013
    Posts
    1,787
    Quote Originally Posted by MartinR View Post
    Heh, I was thinking about object oriented programming, what else Hodor? So the kind of programming where you define objects, then create instances of them and finally use them accordingly.
    Well, you can do that using plain C.

    The reason I asked is because there doesn't really seem to be a consensus on what "OOP" actually is. So, maybe, "design patterns" are not related to OOP at all and your question could be rephrased a bit to make it more specific, because AFAIK there is no "OO[P] way" because nobody can even agree on what OOP actually is. If that makes sense.

  5. #5
    Registered User
    Join Date
    Jul 2015
    Posts
    64
    First, please define "OO programming"
    Ahh, MartinR, I feel you missed a golden opportunity there.
    You could have punned back with the classic:

    Code:
    #define OO_programming
    Sorry, I shall fade back into the background now

  6. #6
    Registered User MartinR's Avatar
    Join Date
    Dec 2013
    Posts
    200
    Quote Originally Posted by Hodor View Post
    Well, you can do that using plain C.
    The reason I asked is because there doesn't really seem to be a consensus on what "OOP" actually is. So, maybe, "design patterns" are not related to OOP at all and your question could be rephrased a bit to make it more specific, because AFAIK there is no "OO[P] way" because nobody can even agree on what OOP actually is. If that makes sense.

    Hodor, you are turning my question into a very *philosophical* discussion. No no, I simply wanted to request advices on how to learn good OO programming in C++. So should I concern on design patterns, or something else. What should I study to write good OO software ;]


    Thanks!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C & design patterns / architecture
    By TheTobles in forum C Programming
    Replies: 2
    Last Post: 03-30-2014, 09:13 AM
  2. Help with C++ Game Design patterns
    By Darkinyuasha1 in forum Game Programming
    Replies: 1
    Last Post: 03-14-2014, 06:44 PM
  3. Useful Design Patterns?
    By h_howee in forum Game Programming
    Replies: 3
    Last Post: 03-31-2010, 03:16 PM
  4. Design patterns in C
    By sashaKap in forum C Programming
    Replies: 2
    Last Post: 04-26-2009, 08:32 AM
  5. Cprog tutorial: Design Patterns
    By maes in forum C++ Programming
    Replies: 7
    Last Post: 10-11-2004, 01:41 AM