- C# and .NET Core Test Driven Development
- Ayobami Adewole
- 161字
- 2021-06-25 22:00:26
Naming the program elements
Meaningful and descriptive element naming can greatly improve the source code's readability. It allows easy comprehension of the logical flow of the program. It is amazing how software developers still give names to program elements that are too short or not descriptive enough, such as giving a variable a letter name or using acronyms for variable naming.
Generic or elusive names for elements lead to ambiguity. For example, having a method name as Extract() or Calculate() at first glance results in subjective interpretations. The same is applicable to using vague names for variables. For example:
int x2;
string xxya;
While program element naming in itself is an art, names are to be selected to define the purposes as well as succinctly describe the elements and ensure that the chosen names comply with the standards and rules of the programming language being used.
More information on acceptable naming guidelines and conventions is available at: https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/naming-guidelines.
- 計算機網絡
- Learning ROS for Robotics Programming(Second Edition)
- INSTANT OpenCV Starter
- Python計算機視覺編程
- Python 3網絡爬蟲實戰
- Learning Python Design Patterns(Second Edition)
- PHP+MySQL網站開發項目式教程
- Python算法詳解
- R用戶Python學習指南:數據科學方法
- Node.js開發指南
- Getting Started with Web Components
- Web前端開發技術實踐指導教程
- Mastering Responsive Web Design
- OpenCV:Computer Vision Projects with Python
- 3D Printing Designs:Fun and Functional Projects