Naming Conventions----Best pratice

Variables: <scope><array><data type>Descriptive_Name

Constants: <scope><data type>Descriptive_Name

User-defined types: Type Descriptive_Name

              <data type> Descriptive_Name

            End Type

Enumeration types: Enum <project profix>General Descr

              <project profix> GeneralDescrSpecificName1
              <project profix> GeneralDescrSpecificName2

           End Enum

=============================================================

The Scope Specifier (<scope>)
g—Public
m—Module-level
(nothing)—Procedure-level

The Array Specifier (<array>)
a—Array
(nothing)—Not an array

The Data Type Specifier (<data type>)

ex: i for integar, d for double...

Enumeration Types

ex: xlPaperA4 represents A4 paper

Naming Conventions----Best pratice

时间: 2024-08-10 15:05:11

Naming Conventions----Best pratice的相关文章

Spring mvc 4系列教程(二)——依赖管理(Dependency Management)和命名规范(Naming Conventions)

依赖管理(Dependency Management)和命名规范(Naming Conventions) 依赖管理和依赖注入(dependency injection)是有区别的.为了将Spring的优秀特性(如依赖注入)带到你的应用中,需要在编译时或运行时部署所需要的库(jar包).这些依赖不是虚拟的构件,而是文件系统上的物理资源.依赖管理的过程涉及到定位这些资源.存储资源.加入classpath.依赖可以是直接的(例如Spring运行时),也可以是间接的(例如commons-dbcp).间接

JavaScript Patterns 2.10 Naming Conventions

1. Capitalizing Constructors var adam = new Person(); 2. Separating Words camel case - type the words in lowercase, only capitalizing the first letter in each word. upper camel case, as in  MyConstructor(), lower  camel  case,  as  in  myFunction(),

Naming Conventions for .NET / C# Projects

http://www.akadia.com/services/naming_conventions.html Naming Conventions for .NET / C# Projects Martin Zahn, Akadia AG, 20.03.2003 The original of this document was developed by the Microsoft special interest group. We made some addons. This documen

C# Coding &amp; Naming Conventions

Reference document https://msdn.microsoft.com/en-us/library/ff926074.aspx https://msdn.microsoft.com/en-us/library/ms229045(v=vs.110).aspx Coding Conventions Layout Conventions Use the default Code Editor settings (smart indenting, four-character ind

Objective-C基础8 :命名约定(naming conventions)

由于OC里面没有命令空间这种利器来避免名字空间,所以得特别注意名字污染,一般的命令约定由如下几条: 1.类.类别.协议的命名在整个工程里面必须保持全局唯一.以前缀开始并且以大写字母开头,比如XPZMyPerson; 2.类方法和属性的命名以小写字母开头,多个单词组成的方法和属性名称遵循camel case,比如myName.类方法和属性的命名只需要在类以及类的继承链里面保存唯一即可.需要注意的是类别方法需要全局唯一,加前缀命令. 3.实例变量的set和get方法命名约定,set方法命名为set+

Error解决:Property&#39;s synthesized getter follows Cocoa naming convention for returning &#39;owned&#39;

在项目中定义了以new开头的textField,结果报错: 先看我的源码: #import <UIKit/UIKit.h> @interface ResetPasswordViewController : UIViewController @property (weak, nonatomic) IBOutlet UITextField *phoneTextField; @property (weak, nonatomic) IBOutlet UITextField *oldPasswordTe

Naming variables

Variables are a fundamental building block of all programming languages. In this lesson, I'll describe briefly what a variable is, explain the basic rules for naming variables(注意区分和JS的不同命名规则), and offer some advice on choosing variable names. Put sim

Windows远程数据同步工具cwRsync

1. cwRsync简介 cwRsync是Rsync在Windows上的实现版本,Rsync通过使用特定算法的文件传输技术,可以在网络上传输只修改了的文件. cwRsync主要用于Windows上的远程文件同步备份和同步,它包含Cygwin DLL和适用Cygwin版本的Rsync两部分. cwRsync分为Server和Client,本文使用的版本为4.1.0,下载地址如下: cwRsyncServer v4.1.0:http://pan.baidu.com/s/1eQpaIVw cwRsyn

为什么一个类的全局变量默认以m开头?

某天闲着无聊,突然想起来为什么大家都习惯将全局变量使用m开头,于是追根求源,查了一些资料,虽然并不是我想要的,但是也总结一下. 在stackoverflow上就有人问: Why do most variables in Android tutorial start with 'm'? 下面就有人回答是在Android源码网站里有对编码规范的描述,其中就有: Follow Field Naming Conventions non-public, no-static field names star

【转】CwRsync简介

rsync是linux下一款用于同步文件的优秀软件,window下也可以使用它,不过名字为cwRsync.cwRsync也分为客户端和服务端,官方网址:https://www.itefix.no/i2/cwrsync-get,当前使用的版本下载地址:http://zhangrenfang.ys168.com/ 各种rpm安装包文件夹下.也可以参考下http://www.linuxidc.com/Linux/2014-01/95721.htm下载. 环境准备: 1. Win7 64位专业版 10.