Posted in Programming techniques

The main differences between Java floating point types float and double

To understand the range and precision of float and double, you must first understand how decimals are stored in computers: For example: 78.375, which is...

Continue Reading
Posted in Programming techniques

Find table length in lua

The official documentation describes it like this: The length operator is written as the unary operation #. The length of a string is its number...

Continue Reading
Posted in Programming techniques

Correct definition of macro definition, macro definition of trinocular operation

Abstract: Macros are divided into two categories: 1.Object-like macro is relatively simple for object macro, but it is not so simple.   2. Function-like macro...

Continue Reading
Posted in Programming techniques

Trinary operator in Lua

Trinocular operation Old drivers who are familiar with C / C ++ know trinocular operation a? B: c. This kind of writing replaces simple conditional...

Continue Reading
Posted in Programming techniques

CSS position relative positioning and absolute positioning

First, the four values ​​of position: static, relative, absolute, fixed. Absolute positioning: absolute and fixed are collectively referred to as absolute positioning Relative positioning: relative...

Continue Reading
Posted in Programming techniques

Use nvm to manage different versions of node and npm

This situation is often encountered in our daily development: there are several projects on hand, each project has different requirements, and different projects must rely...

Continue Reading
Posted in Programming techniques

Ways to introduce CSS in HTML

There are 4 ways to introduce CSS in HTML. There are two ways to add CSS code directly to the HTML file, and the other...

Continue Reading
Posted in Programming techniques

Difference between JRE and JDK

Definition JRE (Java Runtime Enviroment) is a runtime environment for Java. For users of Java programs, not developers. If you only downloaded and installed the...

Continue Reading
Posted in Programming techniques

C ++ class constructor initialization list

The constructor initialization list starts with a colon, followed by a comma-separated list of data members, each data member followed by an initializer in parentheses....

Continue Reading
Posted in Programming techniques

PyCharm Installation Tutorial (Windows)

PyCharm is a powerful Python editor that is cross-platform. In view of the fact that the latest version of PyCharm has fewer tutorials, in order...

Continue Reading