求助关于java

jamie86

新手上路
注册
2004-11-17
消息
69
荣誉分数
0
声望点数
0
哪位高人可以帮帮我的cs lab 这个lab对我很重要啊
 
靠,楼上说的
Waterloo不是没有笨鸟。。。。
前两天我还帮他们cs的写code呢。。
 
最初由 笨石 发布


DIY, otherwise you will not be able to graduate from waterloo

哈,就这个lab的难度而言,你说对了。

有一点我要提醒,虽然说public variable的安全性比private差,容易产生意大利面代码。但是,使用public variable会导致程序减少好多步骤,能提高程序性能的。如果你一个变量经常要进行读写,个人经验,还是public variable比较好。当然,这不符和OO精神……
 
Global variable is not suggested. The larger your system is, The more harms global variable will do. Since all the maintainers have to study your whole code to study where the global variable get changed. The effort to study and maintain the code is far more greater than writing the code in less global variables. It is the spirit of OO design!

"有一点我要提醒,虽然说public variable的安全性比private差,容易产生意大利面代码。但是,使用public variable会导致程序减少好多步骤,能提高程序性能的。如果你一个变量经常要进行读写,个人经验,还是public variable比较好。当然,这不符和OO精神……"
 
最初由 snowboy1975 发布
Global variable is not suggested. The larger your system is, The more harms global variable will do. Since all the maintainers have to study your whole code to study where the global variable get changed. The effort to study and maintain the code is far more greater than writing the code in less global variables. It is the spirit of OO design!

"有一点我要提醒,虽然说public variable的安全性比private差,容易产生意大利面代码。但是,使用public variable会导致程序减少好多步骤,能提高程序性能的。如果你一个变量经常要进行读写,个人经验,还是public variable比较好。当然,这不符和OO精神……"

真是读死书……为什么C++取代不了C语言?有时侯,要性能,还是要OO?This is a question!
 
Java is optimized at runtime. Public/private variables almost make no difference.
 
请问 有谁能告诉我 java 和CGI的本质区别
同样可以做软件 制网页 但其中之具体差别是???
 
You can use most programming languages (perl, c/C++, etc.) to make CGI. However, if you use perl for CGI, a process will be generated for each query and will
be destroyed after a query is finished. This working
mechanism ( create and destroy )can make a server very busy when many sessions of queries come in and is not efficient. Java creates a thread for each session. Only after the session is finished, the thread is destroyed. Therefore, Java is much more efficient. The disadvantage of Java is that you need to know OO. Perl is simple to learn. Even high school students can use perl, probably not Java.
Wish it helps.
 
后退
顶部