一个程序员的进化

一个程序员的进化

ID:41595678

大小:73.60 KB

页数:6页

时间:2019-08-28

一个程序员的进化_第1页
一个程序员的进化_第2页
一个程序员的进化_第3页
一个程序员的进化_第4页
一个程序员的进化_第5页
资源描述:

《一个程序员的进化》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、一个程序员的进化人是奇怪而复杂的动物,程序员也一样。程序员也分为了许多的层次,刚毕业是一个层次,干了几年是一个层次,经历多年磨砺又是一个层次,经过几多磨难化茧成蝶将是另一个层次。而不同层次的程序员编出的代码也显示出了不同的风格。有的程序员会将明明几句话可以搞定的东西偏要写一页,以为这样才显出水平,更可恶的是还要绕来绕去故意写成这样,让后来的人看不懂,而有的则会将代码化繁为简。初学者首要的是要保证代码的正确性和可读性,代码写多了后,问题自然少了,代码也较简洁了,效率也会随之提高。第一年23■5678class心loworld{pu

2、blicstaticvoidTiain(Stringargs[]){//Displays"helloWorld!wonth已console.Systen.out.println(H-ello?Jorld!”);}}第二年1234567891011121314151617181920212223242526*Helloworldclass茅Usedtodisplaythephrase"HelloWorld!"inaconsole.x^authorSeanclass-elloworldar皓*Thephrasetodisplayin

3、theconsolepublicstaticfinalstringPHRASE=RKelloJorld!”;*Mainmethod*@paramargsCommandlineargumerrts*^returnvoidpublicstatitvoidnain(Stringargs[]}//Displayourphraseinaconsole,system.out.printin(PrRASE);}第三年3456789101112131415161718192021222324252627282930313233343536373

4、8394B414243454647484950515253545556575859606162HelloworldclassUsedtodisplaythephrase"HelloWorld!"inaconsole.“^authorSean*^licenselgpl31Version1.2*^seesystem.out.printIn31@seeREADME專^todoCreatefactorymethods第glinkhttcs://github.com/sean/helloworldclasswelloi-Jorld{*Th

5、edefaultphrasetodisplayintheconsolepublicstaticfinalstringphrase=Mi-ello?Jorld!H;*Thephrasetodisplayintheconsoleprivatestringhello_>K>rld=null;/”專Constructor亠gparamhwThephrasetodisplayintheconsolepublicHelloworld(singhw)(hello^world=hw;}■*DisplaythephraseRHelloworld!

6、Rinaconsole*^returnvoidpublicvoidsayPhrase(){//Displayourphraseinaconsole.System,out.println(hello_?jorld);}-#Mainmethod容gparainargsCommandlinearguments*^returnvoidrpublic5taticvoidnain(stringargs[]){helloworldhw=newHelloworld(phrase);try{hw.sayPhrase();}catch(Except

7、ione){//Donothing!第五年rs」orr”a-lQrQ.-lLlJ5YiHdUD.5」4sr-1B岛』黑4245VHqnd?OJl/le」x:dpuooIDsQJlu铃Lror-1^占H0二屮JSM占bll.5」二〔puu鳥右45UMqnd、・wsrDJudASJrlJ2匸1・)PI」of亠02;sE91」2占1〔2匚、匸^>1

8、

9、5、畐:>・{^匚413、、:5£144匚乂匸MBsmeduKDs*0430?.&wWNavsHalaJs■s4fi」d£0.§4=501总w"•

10、zLJO«HSJaJA§w23OJUH®・0C-10Z匸eOJs主丹」苔0:>0*crtiajsfe•=*£

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。