Spring MVC: The Ultimate Guide to HTTP Mastery from Bronze to King

Spring MVC: The Ultimate Guide to HTTP Mastery from Bronze to King

“Spring MVC is not a tool for writing Controllers, but a guide on how to think in the paradigm of Web development.” —— A note found in the notebook of an architect at Alibaba, P8 level MVC stands for Model View Controller, which is a software design pattern. Its core principle is to separate business … Read more

Detailed Explanation of C++ Polymorphism (Part 2)

Detailed Explanation of C++ Polymorphism (Part 2)

Last time we learned some basic concepts of polymorphism and the underlying implementation principles of dynamic binding. This time, let’s continue to explore the practical application scenarios of polymorphism.Before that, let’s supplement a few basic points that were missed last time. Pure Virtual Functions and Abstract Classes If a base class’s virtual function only needs … Read more

Detailed Explanation of the Singleton Pattern in Python

Detailed Explanation of the Singleton Pattern in Python

Background Have you heard of the Singleton Pattern in Python? I encountered it while reading someone else’s code and didn’t understand what that piece of code meant. Later, when I searched for information, I learned that the purpose of that code is to create a single instance. It was from that moment that I became … Read more

Making Embedded Systems: Preface

Making Embedded Systems: Preface

Preface:I love embedded systems. The first time a motor turned because I told it, I was hooked. I quickly moved away from pure software and into a field where I can touch the world. Just as I was leaving software, the seminal work was done on design patterns. I love embedded systems. The first time … Read more

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