Code habits

*) Due to my poor memory, it is necessary to always save some code that reflects my thinking process. These codes may be better replaced in later work, or he may be wrong at the beginning, so I must put They commented out, in order to distinguish some other normal explanatory notes, it is necessary to add some special tags

# "" "#Next, determine whether the node in the abutment is in the adjacency list of the starting node. If a ring is found in the description," "" is annotated with the # sign first, followed by the text note, and then the # sign Branch notes

  

Intelligent Recommendation

Some summary of recent code habits

Variable naming Try to find some names shorter and easy to understand, don't get too long. For example: ListForexmation can be written: List4exma Variable finishing The code that will be contacted int...

iOS code habits and code optimization (1)

1. Attribute modifiers need to pay attention to the place In arc, properties outside the basic variables are preferred for weak references.weakTo avoid the appearance of wild pointers,weakCan be autom...

Develop good programming habits and improve code quality

"Do not accumulate steps, no miles, no accumulation of small streams, no rivers and seas", how can programmers improve the quality of the code? We must not only know the truth, but also know...

About the settings of WebStrom common code habits

About the settings of WebStrom common code habits 1. Some people are not used to the first line under the scrip t and style tags.Blank line 2. Modify the color of the line number on the left side of t...

Finishing Pytorch own code writing habits

They are not pure code-based, and the main algorithm, so his past is all the code can remain in the stage, but since git cloneSRPytorchAfter this project, I feel the need to upgrade their code readabi...

More Recommendation

Xcode provided personal habits - code folding

Description not too much, used to code folding, because it looks comfortable, Xcode also provides such functionality, but need to manually open, and the animation is good. Open Preferences, Manual: Xc...

Good habits in Java code performance upgrade

Make the code more performance If necessary Map the primary key and value should be iterative entrySet ()** When the cycle requires only Map primary key, iteration keySet () is correct. However, when ...

Some writing habits of controller code in company projects

I see some summary of the existing code, not necessarily correct, write it here Attached ProjectException code...

Common code for crawlers (in accordance with personal habits)

Common code for crawlers: 1 Timestamp to string time: 2 python executes JS code 3 File to run scrapy crawler: 4 Pass parameters to the scrapy crawler file: 5 The extensions.py that the scrapy_redis cr...

Visual Studio Code common plugin and habits

Visual Studio Code often uses VSIX extensions Chinese (Simplified) Language Pack 1.50.2 Suitable for Visual Studio Code 1.50.0 and later Chinese (Simplified) language packs. One Dark Pro Atom's iconic...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top