The three principles of object-oriented programming:
Automatic data processing application:
Abstract Class: a class whose implementation is not complete and which is not instantiable.
Allows passing a contract. Child classes will have to implement what is missing.
Advantages:
ABC 👨👩👧👦Currently, 3 data formats in our application:
Do you see a problem?
BUT
Pattern Bridge
Splitting a large class into a group of smaller classes, each with its own hierarchy, which must then be combined.
if/elif/else 🐱🏍Writing quality code is like doing precision craftsmanship; it requires tools, experience, and methods.
if/elif/elseImportant
Low coupling, high cohesion
Limit the risk of errors when modifying code (avoid spaghetti code) 🍝
if/elif/else. Each part of our code handles only one thingEvery part of our code does just one thing
“In computer science, and more specifically in software development, a design pattern is a characteristic arrangement of modules, recognized as a best practice in response to a software design problem. It describes a standard solution, usable in the design of different software.” — Source
Is a tool that is there to help you
Recurring Problem:
Important
Low coupling, high cohesion