Makefile Learning Part II: Commands and Variables

Makefile Learning Part II: Commands and Variables

Follow for more updates, let’s go From Zero To Hero! Introduction In Go language development, we want to standardize code style so that each member can format code with one click and check for syntax errors; we want to run unit tests, generate test reports, and compile, package, and release projects with one click, which … Read more

Exploring C++ Variables and Constants: Declaration, Initialization, and Scope

Exploring C++ Variables and Constants: Declaration, Initialization, and Scope

Exploring C++ Variables and Constants: Declaration, Initialization, and Scope In C++ programming, variables and constants are fundamental and important concepts. They are not only the basic units for storing data but also directly affect the behavior of the program. This article will detail the declaration, initialization, and scope of variables and constants. 1. Variables 1.1 … Read more

Refactoring a Go Project Makefile

Refactoring a Go Project Makefile

If you are not familiar with Makefile, I recommend reading Ruanyifeng’s article “Make Command Tutorial[1]“. This article will guide you to write a more elegant Makefile through a refactoring example, so let’s get started! Assuming there is a project named foo, developed in Golang and deployed on Docker, its Makefile is as follows: APP = … Read more

Understanding The Role of Static in C++

Understanding The Role of Static in C++

Hello everyone, today we are going to talk about the “static star” in C++ — <span>static</span>. This keyword seems simple at first glance, just six letters, but it plays multiple important roles in C++, involving different semantics for variables, functions, and classes. If you still regard <span>static</span> merely as a synonym for “static variable”, then … Read more

Variables and Encoding in Assembly Language

Variables and Encoding in Assembly Language

Assembly language uses mnemonic symbols to write programs, which are converted into binary code programs that can be recognized and processed by computers via a compiler. 1. Introduction to Programming Languages Machine Language is represented in binary code, a set of machine instructions that can be directly recognized and executed by a computer. Its intuitiveness … Read more

Python Beginner’s Guide: Learn Variables and Data Types in 10 Minutes

Python Beginner's Guide: Learn Variables and Data Types in 10 Minutes

Hey, curious friends who are interested in programming! Today, we are going to embark on a super fun journey of exploring Python – “Python Beginner’s Guide: Learn Variables and Data Types in 10 Minutes, Easily Mastering the First Step of Programming!” Imagine programming as building a super cool castle, and variables and data types are … Read more

Python Variables and Operations: Basics and Advanced

Python Variables and Operations: Basics and Advanced

In Python programming, variables are the basic units for storing data, while operations are the fundamental actions for processing data. By defining variables and performing operations, various complex logic and functionalities can be achieved. This article will start with the basic definition of variables and simple operations, gradually delving into more complex operations and data … Read more

How to Switch MATLAB 2021a User Interface Language

How to Switch MATLAB 2021a User Interface Language

In Chinese operating systems, MATLAB version 2015b and later is installed in Chinese by default, but some users prefer to use the English interface (personal preference). Below is a simple method to switch between Chinese and English interfaces. 1. Switch from Chinese to English Interface: 1. First, open MATLAB 2021a software, which is set to … Read more

CMake Variables: Master Common Variables and Environment Variables

CMake Variables: Master Common Variables and Environment Variables

1. CMake Variable Reference and Definition (1) Use ${} to reference variables. In statements like IF, use the variable name directly without ${}. (2) Custom variables can be defined implicitly and explicitly. For example, the PROJECT command implicitly defines <projectname>_BINARY_DIR and <projectname>_SOURCE_DIR. Explicitly defining variables can be done using the SET command. For example: SET(HELLO_SRC … Read more