Atitit. 软件设计 模式 变量 方法 命名最佳实践 vp820 attilax总结命名表大全
Atitit. 软件设计 模式 变量 方法 命名最佳实践 vp820 attilax总结命名表大全
8. #----jsp页面的名称,最好不个mod_list.jsp2
1. #====提升抽象层次
$(def),abstr,arr,average,base,call,Chain closure,controllor/c,dao/dal,data,data2,dic,each,Element,exec,execute...,fac,flag,fun,handle,handler,helper,helper,helper,int/i,invoke,item,lst,list,manager,manager,max,min,mp,map,,num/n,obj/o,process,Pattern,record,ret/return,req,request,resp,response,run,service,service,sort,str/s,sum,sum,svs/service,succes,tmp等,total,util,util,util,x(util)
我通常把那些公共的,并且只有静态函数,没有实例,没有属性的类放到util里,Helper是有实例的,有属性的这样的类.
2. #----使用通用单词
作者:: 老哇的爪子 Attilax 艾龙, EMAIL:1466519819@qq.com
转载请注明来源: http://www.cnblogs.com/attilax/
3. #===使用术语..
4. #===使用缩写
5. #====自己最孰的语言(diaglog??)
6.
7. #====normal naming + anno
#就是“how”,而非“what
8. #----jsp页面的名称,最好不个mod_list.jsp
中间好行...放的个root哈面儿也ok..到个一达挨直了..
9. 名词优先与动词
世界大部分语言都是名词优先前置,因为可以食物化。。
10. 变量的常用前缀
@ 猴头儿,,,sql黑头
$ 美元字符, php 黑头
# 井字 模板黑头通常
%% 百分号,, bat黑头..
11. 常用命名表 (277 个item)
A , abs , abstr , Abstract , act , Action , active , Adapter , add , After , Ajax , alias , any , Api , app , append , args , Argument , Arr , Asyn , attibute , attr , auth , base , basic , Bean , bin , bind , Block , box , Bridge , Btn_click , buffer , Builder , bundle , cache , calc , call , callback , Caller , Chain , channel , Class , client , close , closure , Cmd , Code. , Collection , Command , complex , configer , conn , Context , Context , Controller , converter , cookie , Core , Creator , Dal , Dao , Data , decoder , Decorator , def , default , define , Delegate , dic , dir , dispatcher , Dsl , Dwr , each , editor , element , encoder , End , engine , Entry , enum , Err , Except , Exception , Exe , Exec , exp , expression , ext , Extends , Fac , Facade , Factory , File , fill , Filt , Filter , Final , finder , Finishi , fix , flag , foreach , Form , frag , Front Controller , fun , future , gene , general , get , getInstance , global , Grep , Gui , handle , Handler , Hash , helper , holder , icon , impl , Implements , info , ini , Inject , Interface , Interpreter , Interrupted , Invocation , Invoke , Ioc , Item , Iterator , Join , jump , Key , lazy , List , listner , loop , manager , Map , map , map , mask , max , max , menu , Merge , meta , min , Mod , model , Modules , monitor , Mvc , n , New , node , node , notify , num , O , o , obj , Object , Observer , option , parallelograme , Param , parse , parser , Pattern , pattern , persistence , Platform , plugin , pool , Process , prop , property , Proto , provider , Proxy , queue , quit , rec , Receive , record , Recv , reduce , ref , refer , reflect , reg , regExp , regur , renderer , report , req , Request , resolver , resource , resp , response , result , Return , run , S , Safe , scanner , schema , scope , script , selector , Send , sequence , server , Service , session , Set , sign , simple , Singleton , skeleton , sort , Split , Sql , Start , State , statment , Str , strategy , stream , struct , sub , succes , Sync , T , table , Target , task , temp , Template , thread , thumb , tmp , token , tool , total , trace , transaic , traverser , Trig , Trigger , Txt , Type , ui , union , Unsafe , util , util , utils , Val , var , variable , view , view , Visitor , Warp , Warpper , where , with , x , yield ,
12. 参考
atitit.软件开发里面的变量命名最佳实践o7.txt
Atitit. 软件设计 模式 变量 方法 命名最佳实践 vp820 attilax总结命名表大全的更多相关文章
- atitit.设计模式(1)--—职责链模式(chain of responsibility)最佳实践O7 日期转换
atitit.设计模式(1)---职责链模式(chain of responsibility)最佳实践O7 日期转换 1. 需求:::日期转换 1 2. 可以选择的模式: 表格模式,责任链模式 1 3 ...
- Atitit 词法分析器的设计最佳实践说明attilax总结
Atitit 词法分析器的设计最佳实践说明attilax总结 1.1. 手写的优点:代码可读,对源代码中的各种错误给出友好的提示信息,用户体验高,1 1.2. 使用状态表比较简单,dfa比较麻烦1 1 ...
- python高级编程之选择好名称:pepe8和命名最佳实践
# # -*- coding: utf-8 -*- # # python:2.x # __author__ = 'Administrator' # my_list=['a','b','c','d'] ...
- 移动App測试实战:顶级互联网企业软件測试和质量提升最佳实践
这篇是计算机类的优质预售推荐>>>><移动App測试实战:顶级互联网企业软件測试和质量提升最佳实践> 国内顶级互联网公司測试实战经验总结.阿里.腾讯.京东.携程.百 ...
- 基于ABP落地领域驱动设计-03.仓储和规约最佳实践和原则
目录 系列文章 仓储 仓储的通用原则 仓储中不包含领域逻辑 规约 在实体中使用规约 在仓储中使用规约 组合规约 学习帮助 围绕DDD和ABP Framework两个核心技术,后面还会陆续发布核心构件实 ...
- Atitit..文件上传组件选型and最佳实践总结(2)----断点续传
Atitit..文件上传组件选型and最佳实践总结(2)----断点续传 1. 断点续传的原理 1 2. 如何判断一个插件/控件是否支持断点续传?? 1 3. 常用的组件选型结果::马 1 4. 自定 ...
- atitit.hbnt orm db 新新增更新最佳实践o99
atitit.hbnt orm db 新新增更新最佳实践o99 1. merge跟个save了. 1 2. POJO对象处于游离态.持久态.托管态.使用merge()的情况. 1 3. @Dynami ...
- atitit.hbnt orm db 新新增更新最佳实践o7
atitit.hbnt orm db 新新增更新最佳实践o7 1. merge跟个save了. 1 2. POJO对象处于游离态.持久态.托管态.使用merge()的情况. 1 3. @Dynamic ...
- atitit.标准时间格式 互相转换 秒数 最佳实践
atitit.标准时间格式 互相转换 秒数 最佳实践 例如00:01:19 转换为秒数 79,,and互相转换 一个思路是使用div 60 mod...不过麻烦的... 更好的方法是使用stamp ...
随机推荐
- 关于JavaScript中apply与call的用法意义及区别
JavaScript中有一个call和apply方法,其作用基本相同,但也有略微的区别. 先来看看JS手册中对call的解释: call 方法调用一个对象的一个方法,以另一个对象替换当前对象. cal ...
- 前端技术Bootstrap的hello world
----对于用户来说,界面就是程序本身.那么一个漂亮的web一定是你继续使用这个应用的前题. 这一节我们来一起写个Bootstrap的hello wrold. Bootstrap Bootstrap ...
- 透过WebGL 3D看动画Easing函数本质
50年前的这个月诞生了BASIC这门计算机语言,回想起自己喜欢上图形界面这行,还得归功于当年在win98下用QBASIC照葫芦画瓢敲了一段绘制奥运五环的代码,当带色彩的奥运五环呈现在自己面前时我已知道 ...
- DOM中 property 和 attribute 详解
被问到 property 和 attribute 的区别,想来也是要好好看一下. 一.基本概念区别 其实Attribute和Property这两个单词,翻译出来都是“属性”,<js高级程序设计& ...
- MVVM(Model-View-View-Model)简单分析(及代码示例)
项目组,现在用的MVVM(Model-View-View-Model)模式,搞了一个多月,感觉有点明白了.
- 防止用户误操作退出APP的处理
/** * 软件退出的处理:先跳到第一个页面,再点提示“再点一次退出”,2秒内再点一次退出 * 防止用户误操作 */ private boolean isExist=false; private Ha ...
- eclipse easyexplorer openexplorer
电脑重装了.. eclipse换成了4.4.2,发现原来的easyexplorer不生效了(原来是4.2),搜了下,换成了open explorer即可. 方式一样,都是丢到eclipse/plugi ...
- Play Framework介绍:控制器层
业务逻辑代码通常位于模型(model)层.客户端(比如浏览器)无法直接调用其中的代码,所以模型对象提供的功能,必须作为资源以URI方式暴露给外部. 客户端使用HTTP协议来操作这些资源,从而调用了内部 ...
- 一些实用但不为人知的Unix命令
浮现在脑海的很多 Linux命令,其中一些不为人知,另一些则很常见,如下: xargs or parallel: 并行运行一些程序,命令有很多的选项 sed and awk: 广为人知并且非常有用的处 ...
- js实现点击<li>标签弹出其索引值
据说这是一道笔试题,以下是代码,没什么要文字叙述的,就是点击哪个<li>弹出哪个<li>的索引值即可: <html> <head> <style& ...