News for hackers. Stuff that matters.
Re:What is the best way to learn Design patterns and start a... by slipwalker on Thursday July 19, 2018 @07:47AM (#17565423)
not sure about "the best way", but besides the obvious cases ( factory, singleton ) i apply the Kerievsky's Refactoring To Patterns method.

    “Instead of thinking about a design that would work for every nuance of a system, 
    test-first programming enabled me to make a primitive piece of behavior work correctly 
    before evolving it to the next necessary level of sophistication.” 
    Kerievsky (2002)
https://www.amazon.com/Refactoring-Patterns-Joshua-Kerievsky...

If a piece of code survives long enough to deserve some refactoring, then i take a closer look at the patterns.

There are no comments on this comment yet.