Contained in: Object-Oriented Programming: Beyond the Basics
design patterns
iOS & Swift
Lesson in Object-Oriented Programming: Beyond the Basics
Design Patterns
Oct 17 2023 · Lesson
This lesson introduces the concept of design patterns and demonstrates their usefulness with object-oriented programming…
iOS & Swift
Lesson in Object-Oriented Programming: Beyond the Basics
Design Patterns
Oct 17 2023 · Lesson
This lesson introduces the concept of design patterns and demonstrates their usefulness with object-oriented programming…
iOS & Swift
Object-Oriented Programming: Beyond the Basics
Oct 17 2023 · Multimodal Module (1 hr, 50 mins)
…will face while building different apps which are already well known and solutions already have best practices to solve them. Composition and Aggregation Classes Design patterns SOLID principles Apply advanced OOP concepts, such as inheritance, polymorphism, and composition to design and implement a complex object-oriented model. Identify and apply…
iOS & Swift
Lesson in Object-Oriented Programming: Beyond the Basics
Design Patterns
Oct 17 2023 · Lesson
This lesson introduces the concept of design patterns and demonstrates their usefulness with object-oriented programming…
iOS & Swift
Lesson in Object-Oriented Programming: Beyond the Basics
Single Responsibility & Open-Closed Principles
Oct 17 2023 · Lesson
…then learned about base classes and different techniques related to inheritance that help you define operations in a cleaner way. In the third lesson, “Design Patterns”, you learned about design patterns by looking at what they are and which software engineering challenges they solve. In all three lessons, you took…
iOS & Swift
Lesson in Object-Oriented Programming: Beyond the Basics
Single Responsibility & Open-Closed Principles
Oct 17 2023 · Lesson
…history about those principles: In 2000, Robert Cecil Martin (known as Uncle Bob) first introduced the term SOLID in his paper “Design Principles and Design Patterns”. The term is an acronym for five design principles that address the problem of software rotting: a metaphor for how a poorly structured codebase…
iOS & Swift
Lesson in Object-Oriented Programming: Beyond the Basics
Design Patterns
Oct 17 2023 · Lesson
This lesson introduces the concept of design patterns and demonstrates their usefulness with object-oriented programming…
iOS & Swift
Lesson in Object-Oriented Programming: Beyond the Basics
Design Patterns
Oct 17 2023 · Lesson
This lesson introduces the concept of design patterns and demonstrates their usefulness with object-oriented programming…
iOS & Swift
Lesson in Object-Oriented Programming: Beyond the Basics
…lesson. SOLID principles are guidelines to help you plan for the future. You can implement them in different ways. They aren’t instructions like design patterns, which are focused on solving a specific technical challenge. Here are the things you learned in this lesson: Liskov Substitution principle is a guideline…
iOS & Swift
Lesson in Object-Oriented Programming: Beyond the Basics
Design Patterns
Oct 17 2023 · Lesson
This lesson introduces the concept of design patterns and demonstrates their usefulness with object-oriented programming…
iOS & Swift
Lesson in Object-Oriented Programming: Beyond the Basics
Design Patterns
Oct 17 2023 · Lesson
This lesson introduces the concept of design patterns and demonstrates their usefulness with object-oriented programming…
iOS & Swift
Lesson in Object-Oriented Programming: Beyond the Basics
Design Patterns
Oct 17 2023 · Lesson
This lesson introduces the concept of design patterns and demonstrates their usefulness with object-oriented programming…
iOS & Swift
Lesson in Object-Oriented Programming: Beyond the Basics
Design Patterns
Oct 17 2023 · Lesson
This lesson introduces the concept of design patterns and demonstrates their usefulness with object-oriented programming…
iOS & Swift
Lesson in Object-Oriented Programming: Beyond the Basics
Single Responsibility & Open-Closed Principles
Oct 17 2023 · Lesson
…hide the implementation details of how the two types of contacts differ and how exactly to manage adding related contacts. In lesson three, “Design Patterns”, you learned about the factory pattern, which is ideal for hiding the implementation details of the constructor. I’m sure that made you rethink…
iOS & Swift
Lesson in Object-Oriented Programming: Beyond the Basics
Single Responsibility & Open-Closed Principles
Oct 17 2023 · Lesson
Open the starter playground. It’s identical to the code you had at the end of lesson three, “Design Patterns”. In the current implementation of the cards, the flag isCompany is a Boolean variable. Its two possible values indicate whether the contact represents a company or an individual. The value…
iOS & Swift
Lesson in Object-Oriented Programming: Beyond the Basics
Single Responsibility & Open-Closed Principles
Oct 17 2023 · Lesson
…that it needs to pass the entry to a logging manager that will take care of those details. So your next step is to design that LogManager: class LogManager { public func addLogEntry(_ entry: String) { } } From the old system implementation, LogManager should be responsible for: Handling log files. Verifying the sizes…