Redian新闻
>
Re: what parts of Java you don't like? w
avatar
Re: what parts of Java you don't like? w# Java - 爪哇娇娃
M*s
1

But what if you want to manually manage the heap?
But no templates. You need to do type casting back and forth. This is not
only awkward, but also inefficient.
to
But what if you want to write clean nice code?
Java
It's also easy to find 3rd party C++ libraries.
My point is, Java assumes that you don't know too much in computer science.
It is designed for the ease to use.
On the other hand, C++ assumes that you know much in computer science. It is
designed for performance.
What is the conclusio
avatar
g*g
2

Well, I am C++ guy as well as a Java guy doing research, but this is too much
hype for C++. IMHO, C++ and Java are the tradeoff of price and performance,
C++ is 2-5 times faster while taking 50%-100% longer time to develop. And
probably needs much more time in mantenance. However, it's nothing to do with
CS. Lang is just a tool. Given adequate lib, C++/Smalltalk/Java/C# can do
virtually the same job. My exp. is that as long as Java can do the job,
go with Java since we've got good computers. Fo

【在 M****s 的大作中提到】
:
: But what if you want to manually manage the heap?
: But no templates. You need to do type casting back and forth. This is not
: only awkward, but also inefficient.
: to
: But what if you want to write clean nice code?
: Java
: It's also easy to find 3rd party C++ libraries.
: My point is, Java assumes that you don't know too much in computer science.
: It is designed for the ease to use.

avatar
c*u
3
I think the security design and implementation is the one of the
major advantages of java.

【在 g*****g 的大作中提到】
:
: Well, I am C++ guy as well as a Java guy doing research, but this is too much
: hype for C++. IMHO, C++ and Java are the tradeoff of price and performance,
: C++ is 2-5 times faster while taking 50%-100% longer time to develop. And
: probably needs much more time in mantenance. However, it's nothing to do with
: CS. Lang is just a tool. Given adequate lib, C++/Smalltalk/Java/C# can do
: virtually the same job. My exp. is that as long as Java can do the job,
: go with Java since we've got good computers. Fo

avatar
g*e
4
People like to compare JAVA with C++ and blame JAVA lacks some C++ features.
JAVA is just designed that way (eg. primitive type is not an OO way for
programming). If it had everything C++ has then it will have every bad thing
of C++. They are both doing well in their own teritories. C/C++ may not the
best language at that time but may be the most successful one.

rocks!
container

【在 M****s 的大作中提到】
:
: But what if you want to manually manage the heap?
: But no templates. You need to do type casting back and forth. This is not
: only awkward, but also inefficient.
: to
: But what if you want to write clean nice code?
: Java
: It's also easy to find 3rd party C++ libraries.
: My point is, Java assumes that you don't know too much in computer science.
: It is designed for the ease to use.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。