Atitit. 軟體設計 模式 變數 方法 命名最佳實踐 vp820 attilax總結命名錶大全
1. #====提升抽象層次1
2. #----使用通用單詞1
3. #===使用術語..1
4. #===使用縮寫2
5. #====自己最孰的語言(diaglog??)2
6. 2
7. #====normal naming + anno2
8. #----jsp頁面的名稱,最好不個mod_list.jsp2
9. 名詞優先與動詞2
10. 變數的常用字首2
11. 常用命名錶 (277 個item)3
12. 參考3
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