본문 바로가기

반응형

IT

(137)
Checked vs Unchecked
Git https://github.github.com/training-kit/downloads/github-git-cheat-sheet/ https://try.github.io/ Git branches are simply pointers pointing to a specific command. Branch early, and branch often. rebase in git HEAD - symbolic name for currently checked out commit. always points to the most recent commit. instead of checking out to a branch, you could check out towards specific commit. Caret(^) - tr..
Design ToolBox object composition - composition simple defines HAS-A relation. For example, abstract factory pattern uses object composition, having many interfaces in the abstract factory showing a has-a relationship. OO Basics - Abstraction - Encapsulation - wrapping up of data under a single unit. (varies variables under a class) - Polymorphism - the ability of an object to take on many forms. (person, empl..
Strategy Pattern Strategy pattern is useful when we want our application to be flexible. Made up of strategy and context. Source code : https://github.com/Tonyzorz/DesignPatterns/tree/master/bin/behavior/strategy
Chapter 2 Observer pattern can be visualized as newspaper subscription service with its publishers and subscribers. the subject is the publisher, observers are the subscribers. The observer pattern - defines a one-to-many dependency between objects so that when one object changes state, all of its dependents are notified and updated automatically. Design principles : Strive for loosely coupled designs bet..
Chapter 1 https://github.com/Tonyzorz/HeadFirstDesignPattern Tonyzorz/HeadFirstDesignPattern Head first design pattern. Contribute to Tonyzorz/HeadFirstDesignPattern development by creating an account on GitHub. github.com Design principles: - Identify the aspects of your application that vary and separte them frmo what stays the same. - Program to an interface, not an implementation. - Favor composition ..
Builder Design Pattern When instantiating a class in client program, passing many arguments to a constructor can cause errors in many situations and bothersome. ex. having to remember constructor's parameter sequence. Builder design pattern solves this issue by building step by step, allowing client to designate only needed variables. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 ..
Abstract Factory Design Pattern Using Factory design pattern within factory design pattern. Great for predefined objects but if new object has to be added, whole code needs to be adjusted.

반응형