Design Patterns: Exploration of Embedded C Language Implementation – Conclusion

Design Patterns: Exploration of Embedded C Language Implementation - Conclusion

Introduction:This article will provide a brief review of the patterns introduced in this series and discuss the benefits and considerations of using patterns in software design. It will also cover how we can apply these patterns in our actual software development.Pattern Summary: Strategy PatternDefines a family of algorithms, encapsulates them, and makes them interchangeable, allowing … Read more

The Learning Path You Need for C and C++!

The Learning Path You Need for C and C++!

Let’s Discuss Some Interesting Questions: These questions are frequently asked in private messages and were some of my own confusions during the learning process. 1. Why is it that after learning C or C++, I still can’t create anything? Answer: If you can create something just by learning a programming language, you must be a … Read more

Design Patterns: Exploring Embedded C Language Implementation – 14. Remote Proxy Pattern

Design Patterns: Exploring Embedded C Language Implementation - 14. Remote Proxy Pattern

Introduction:This article will briefly describe the remote proxy pattern from the book Head First Design Patterns and implement this pattern using C language.Background of Remote Proxy Pattern Implementation: The background of the remote proxy pattern revolves around the remote monitoring of a candy machine. The CEO of the candy company wants to better monitor the … Read more

Design Patterns: Exploring Embedded C Language Implementation – Iterator Pattern

Design Patterns: Exploring Embedded C Language Implementation - Iterator Pattern

Introduction:This article will briefly describe the Iterator Pattern from the book Head First Design Patterns and implement this pattern using C language. It will also explain the key features of C language used in the implementation.Background of the Iterator Pattern: In the book Head First Design Patterns, the background story of the Iterator Pattern is … Read more

C++ Structural Design Patterns: Adapter Pattern

C++ Structural Design Patterns: Adapter Pattern

Old Zhou talks about coding, the flowers fall under the keyboard; each line weaves a dream across the galaxy, poetry and coding nurture a clear virtue. I am Old Zhou! Follow the “Old Zhou Talks Code” public account for more selected content!┉ ∞ Concept ∞ ┉ Basic Concept: The adapter pattern converts the interface of … Read more

Principles and Code Implementation of the Factory Pattern in Python

Principles and Code Implementation of the Factory Pattern in Python

Principles and Code Implementation of the Factory Pattern in Python The factory pattern is a design pattern for creating objects. It provides an interface for creating objects without specifying the exact class. The factory pattern helps us separate the creation of objects from their usage, thereby improving the flexibility and maintainability of the code. Basic … Read more

Design Patterns: Exploring Embedded C Language Implementation – 3. Decorator Pattern

Design Patterns: Exploring Embedded C Language Implementation - 3. Decorator Pattern

Series, click the above [Microcontroller and Microcontrol Development Journal] to follow this account to avoid losing it.Introduction: This article will briefly describe the Decorator Pattern from “Head First Design Patterns” and implement this pattern using C language. It will also explain the C language features used in the implementation;Background of the Decorator Pattern Implementation: Starbucks … Read more

Embedded Programming Model | Abstract Factory Pattern

Embedded Programming Model | Abstract Factory Pattern

Follow our official account to keep receiving embedded knowledge! 1. Abstract Factory Pattern The Abstract Factory Pattern is a creational design pattern that provides an interface for creating a family of related or dependent objects without specifying their concrete classes. In embedded systems that require high compatibility, the Abstract Factory Pattern can significantly reduce the … Read more

Embedded Programming Model | Simple Factory Pattern

Embedded Programming Model | Simple Factory Pattern

Follow our official account to keep receiving embedded knowledge! 1. Simple Factory Pattern The Simple Factory Pattern, also known as the Static Factory Method Pattern, is a type of creational pattern. It encapsulates the object creation logic through a factory class, dynamically instantiating specific product classes based on input parameters, achieving decoupling of creation and … Read more

An Object-Oriented Journey in C Language

An Object-Oriented Journey in C Language

Introduction The C language was born in 1972 and has been around for 47 years, making it quite an old language. However, it remains very popular and continues to rank among the top programming languages, demonstrating remarkable vitality. C is often labeled as <span>procedural</span>, and many students have not considered or practiced developing C code … Read more