Essential Techniques for Embedded Development: A Practical Guide to the Strategy Pattern, Say Goodbye to If-Else Hell!

Essential Techniques for Embedded Development: A Practical Guide to the Strategy Pattern, Say Goodbye to If-Else Hell!

In the previous article, we shared about bufferevent | Embedded Network Communication Buffer Layer, where bufferevent utilizes the Strategy Pattern design, implementing polymorphic behavior through <span>struct bufferevent_ops</span>: Different types of bufferevent (such as socket, filter, SSL) share the same set of interfaces, calling their respective implementation functions through the <span>be_ops</span> pointer. This article will share … Read more

Embedded Design: Learning the Strategy Pattern

Embedded Design: Learning the Strategy Pattern

The first part of the series of articles about bufferevent introduces its use of the Strategy Pattern, which implements polymorphic behavior through the struct bufferevent_ops. The Strategy Pattern Strategy Pattern The Strategy Pattern is a behavioral design pattern that defines a family of algorithms, encapsulates each one, and makes them interchangeable. This pattern allows the … Read more

New Directions in Humanoid Robots – DSP Controllers

New Directions in Humanoid Robots - DSP Controllers

DSP (Digital Signal Processor) is primarily used for processing real-time signals, such as sensor data and image processing. In humanoid robots, it may be used for motion control, computer vision, and speech recognition. Leading Domestic DSP Enterprises: Accelerating Domestic Substitution HiSilicon Technical Breakthrough: The Kirin series SoC integrates DSP cores for Huawei’s Atlas humanoid robot … Read more