- 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.
- Visual C++程序設(shè)計(jì)教程
- Beginning Java Data Structures and Algorithms
- SOA實(shí)踐
- WebAssembly實(shí)戰(zhàn)
- Python爬蟲開發(fā):從入門到實(shí)戰(zhàn)(微課版)
- 基于Java技術(shù)的Web應(yīng)用開發(fā)
- DevOps Automation Cookbook
- 碼上行動(dòng):用ChatGPT學(xué)會(huì)Python編程
- Learning OpenCV 3 Computer Vision with Python(Second Edition)
- AutoCAD 2009實(shí)訓(xùn)指導(dǎo)
- Unity Character Animation with Mecanim
- C陷阱與缺陷
- INSTANT JQuery Flot Visual Data Analysis
- 量子計(jì)算機(jī)編程:從入門到實(shí)踐
- MySQL數(shù)據(jù)庫教程(視頻指導(dǎo)版)