Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Building More Python Design Patterns

Building More Python Design Patterns

WE WILL BE LOOKING AT

- Object-Oriented design
- Design Patterns
- Programming Challenges
- Business Problems

cleopatra douglas

August 11, 2018
Tweet

More Decks by cleopatra douglas

Other Decks in Programming

Transcript

  1. Building More Python Design Patterns CLEOPATRA DOUGLAS @succedor23 Tech Ziner,

    Developer Advocate, Community Manager and Backend Developer. Building More Python Design Patterns
  2. WE WILL BE LOOKING AT • Object-Oriented design • Design

    Patterns • Programming Challenges • Business Problems
  3. AT THE END, YOU WILL UNDERSTAND - Create Python Programs

    that are easy to write, read and maintain
  4. OVERVIEW • Design Patterns to be covered • SOLID principles

    of object-oriented design • Tools you will need • Meta class programming in python • The Book “Design Patterns: Elements of Reusable Object-Oriented Software by Gamma, Helm, John and Vlissides
  5. DESIGN PATTERNS TO BE COVERED • Facade Pattern • Adapter

    Pattern • Decorator Pattern • Template Pattern • Iterator Pattern • Composite Pattern • State Pattern • Proxy Pattern
  6. REMEMBER THE NEXT PROGRAMMER TO TOUCH YOUR CODE MIGHT BE

    YOUR FUTURE SELF WHO HAS FORGOTTEN EVER WRITING THAT PROGRAM IN THE FIRST PLACE!!
  7. • Access a database • • Get Student records •

    • Ask DBA which database to use • • Import the right python modules • • Instantiate a control object • • Build a connection string • • Connect to the database • • Run a query and process the results • • Close the connection
  8. WE WILL BE LOOKING AT • Object-Oriented design • Design

    Patterns • Programming Challenges • Business Problems
  9. OVERVIEW • Design Patterns to be covered • SOLID principles

    of object-oriented design • Tools you will need • Meta class programming in python • The Book “Design Patterns: Elements of Re-useable Object-Oriented Software by Gamma, Helm, John and Vlissides
  10. DESIGN PATTERNS TO BE COVERED • Facade Pattern • Adapter

    Pattern • Decorator Pattern • Template Pattern • Iterator Pattern • Composite Pattern • State Pattern • Proxy Pattern
  11. REMEMBER THE NEXT PROGRAMMER TO TOUCH YOUR CODE MIGHT BE

    YOUR FUTURE SELF WHO HAS FORGOTTEN EVER WRITING THAT PROGRAM IN THE FRST PLACE!!
  12. • Access a database • • Get employee records •

    • Ask DBA which database to use • • Import the right python modules • • Instantiate a control object • • Build a connection string • • Connect to the database • • Run a query and process the results • • Close the connection
  13. • DECORATOR PATTERN • TEMPLATE PATTERN • ITERATOR PATTERN •

    COMPOSITE PATTERN • STATE PATTERN • PROXY PATTERN OTHER PATTERNS TO LOOK AT!!