Lightweight Logging Tool uLog: Enabling Microcontrollers to Elegantly “Log”

Lightweight Logging Tool uLog: Enabling Microcontrollers to Elegantly "Log"

Summary: uLog is a tool that, once integrated into your embedded project, can immediately print out information such as “Where did I go?” and “Where did it go wrong?” It is compact, low overhead, and user-friendly. What is uLog? uLog is a logging library specifically designed for resource-constrained MCUs (Microcontrollers), consisting of only 1 header … Read more

CO: An Efficient and User-Friendly C++ Foundation Library

CO: An Efficient and User-Friendly C++ Foundation Library

CO: An Efficient and User-Friendly C++ Foundation Library In the field of C++ development, CO (coost) is a highly regarded cross-platform foundation library. It focuses on performance and ease of use, aiming to make C++ programming simpler, easier, and more efficient. The CO library is feature-rich, covering multiple aspects from command line parsing to network … Read more

Self-Assessment for Junior Python Developer Interview Questions (Issue 17)

Self-Assessment for Junior Python Developer Interview Questions (Issue 17)

Keywords for this issue:<span>logging</span>、<span>traceback</span>、<span>cProfile</span>、<span>timeit</span>、Code Debugging and Optimization Difficulty: Beginner → Essential Skills for Advancement 📌 I. Basics of logging 1. Print simple logs import logging logging.basicConfig(level=logging.INFO) logging.info("Program started") 2. Customize log format import logging logging.basicConfig( level=logging.INFO, format="%(asctime)s – %(levelname)s – %(message)s" ) logging.warning("This is a warning") 3. Write logs to a file import logging logging.basicConfig( … Read more

Introduction to Linux Shell (Part 14): Modularization and Project Structure Design of Shell Scripts

Introduction to Linux Shell (Part 14): Modularization and Project Structure Design of Shell Scripts

Chapter Objective: Master the structured organization of large Shell projects to enhance script engineering capabilities. 1. Why Modularization and Structuring? As the size of scripts increases: Maintenance of single files becomes difficult Repeated development of different functionalities Lack of reusability and configurability Difficulties in debugging and collaboration Modularization and structuring can solve these problems, allowing … Read more

Sharing Several Embedded Software Logging Techniques!

Sharing Several Embedded Software Logging Techniques!

Follow+Star PublicAccount to not miss exciting content Source | Embedded Miscellaneous In embedded development, logging and debugging are undoubtedly the most commonly used and practical debugging methods. However, many engineers may not fully leverage the power of logging! Today, I will share several logging techniques to help you progress from a “printf novice” to a … Read more

Clue: A Lightweight C++ Logging Library

Clue: A Lightweight C++ Logging Library

Clue: A Lightweight C++ Logging Library In C++ development, logging is an important aspect that helps developers better understand the program’s runtime state and quickly locate issues. Clue is a very compact and practical C++ logging library. Introduction Clue is a single-file header library, which means it is very lightweight and easy to use. It … Read more

Summary of Methods and Properties of the HTTP Object in the Nginx JS Module

Summary of Methods and Properties of the HTTP Object in the Nginx JS Module

1. Summary of Methods and Properties of the HTTP Object in the JS Module <span>r.args</span> Request parameters, case-sensitive, read-only. Values of repeated parameter names are converted to an array. For example, <span>'a=1&b=2&A=3&b=4&B=two%20words'</span> is converted to <span>r.args</span>, resulting in <span>{a: "1", b: ["2", "4"], A: "3", B: "two words"}</span>. <span>r.done()</span> After calling this function, the next … Read more

Cocoyaxi: An Elegant and Efficient C++ Foundation Library

Cocoyaxi: An Elegant and Efficient C++ Foundation Library

Cocoyaxi: An Elegant and Efficient C++ Foundation Library In the field of C++ development, there are many excellent libraries to choose from, and Cocoyaxi (abbreviated as co) is undoubtedly one of the best. It is a cross-platform C++ foundation library that supports various operating systems such as Linux, Windows, and Mac. Cocoyaxi was developed by … Read more

Self-Assessment Interview Questions for Junior Python Developers (Issue 10)

Self-Assessment Interview Questions for Junior Python Developers (Issue 10)

Keywords for this issue: unit testing, debugging, code style, static analysis, logging Difficulty: Beginner → Practical Advancement 📌 I. Basics of Unit Testing 1. What is the built-in unit testing framework in Python? Explanation Built-in framework: <span>unittest</span> Common third-party frameworks: <span>pytest</span> (more concise and efficient, frequently asked in interviews) 2. Write a simple unit test … Read more

Wild Techniques Every Embedded Development Veteran Knows to Avoid Three Years of Detours!

Wild Techniques Every Embedded Development Veteran Knows to Avoid Three Years of Detours!

Today, I want to share some “unconventional” yet extremely useful tricks in embedded development that seasoned veterans rarely disclose! First Technique: Hardware Issues? Pass the Buck First!If you encounter a program crash, don’t rush to modify the code! First, check if the hardware layout matches the schematic. Our project was delayed last time because a … Read more