Redian新闻
>
一个Java程序员的话(2)
avatar
一个Java程序员的话(2)# Java - 爪哇娇娃
y*n
1
第一章 用它的时候你了解它多少.
我们大多数人都是从写procedure程序过渡来的,怎么能从我们的proc
edure情结中摆脱出来一直是一件头疼的事. 我们中很多人都是在打
着JAVA的幌子,写着VB的程序,用JAVA只是当它是一种编程语言,而对
它没有更深的认识.
我曾看到过这样一段code是检查从web页面上提交的数据是否是数字.
public boolean isNumeric(String str){
int nLength = str.length();
char chrArray = str.toCharArray();
for(int i=0; iif((chrArray[i] >= 0x30) && (chrArray[i]<= 0x39))
continue;
else
return false;
}
}
按照procedure编程的常识,这样写程序是天经地义的事
avatar
a*o
2
Aih, Why so finicky? It's your common sense, but not
everybody has it. You can say it's only a dummy book, but at
least I can not write it so fluently if I am asked to write
such a tutorial. It's in your mind, but it is already great
to be able to organize these minds and put them into words.
Performance and OO design are both important. And I bet in
many codes, neither is respected. Many people write Java
just as they write naive C code. But nobody cares as long as
the functionality is achieved
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。