I am not saying c++ is better I am saying that it have some pros that java don’t have. It’s also have much bigger cons than Java.
In my university we only code with c++ but still I only use Java at my free time. My honest opinion is Java is much better and should use much more but it’s still not only tool in the world.
Yeah I read it… It was kinda funny when the person testing the game was not able to enter in the police car. Seriously, I don’t know why they feel it was necessary to tell everyone it was made in Java. I have no idea in what language the other game I play are made and it is never mentionned built with c++ in the review I read.
Well you are probably right kappa that the game was just bad managed. They failed to do a ‘‘simple’’ fps (so many glitch, gameplay buggy) but they tried to make a MMOFPS. It’s really stupid. It was more to show that that I post the video. The game seems not bad overall and if it was made by a couple of indie it would be great but spending 2 million on that…
All that theory and research is nice but then you go and open NetBeans, JEdit, or one of the other many Java built applications and you find quite a different reality.
You won your independence with the help of France and Spain. However, I don’t advise people to learn my mother tongue.
It does not prove anything. These programs are sometimes not responsive enough, maybe they have too big a memory footprint, it does not mean that Java itself is slow. When I use Jake 2, I find what I expect from a Java application. I have used Java since 2002 and I have worked on some professionnal polished applications, this is the subset of the reality that I see. You can write bad programs with any language.
[quote=“JL235,post:8,topic:36522”]
I agree with you about this aspect. I would like to have a tool like Shiva or FPSCreator for Java.
When you look at the non-Java versions of those applications (such as Visual Studio instead of NetBeans and Eclipse, and Notepad++ instead of JEdit) then you find them more responsive and use less memory. The same is also for plenty of other Java apps I’ve used over the years.
It does not prove that Java is slow. Anyone can find some counter-examples. I disagree with you about Visual Studio, I used it only a few weeks, it doesn’t have as much features as Eclipse and I found VS less stable.
Yes I speak French, it is my mother tongue. I was born in the north of France. [Oui je parle français, c’est ma langue maternelle. Je suis né au nord de la France]
Actually NetBeans and Eclipse launch faster when you include the opening of projects. They both run faster and are way more powerful than Visual Studio. Even for C/C++ development. They do use more memory… partly because in a garbage collecting environment there is overhead, and partly because they have way more features.
C/C++ has it’s place, but in general terms Java is usually a better language for dealing with applications. System level stuff (like drivers), or areas that do need hand tuning in critical loops (with MMX/SSE, etc.) benefit from C/C++ and how easily it transitions between machine code and C+C++ compiled code.
I’m currently working on a project that uses a lot of mixed C++ and Java (I develop in C/C++ and Java) and the C++ parts are the most tedious. Simple things like dealing with text are a chore in C++ and I don’t have to give it a thought in Java… why - because C++ doesn’t do strings well… it can’t even decide what a string is , having char*, wchar_t *, std:string, std:wstring, LPCSTR, not to mention needing to deal with encodings of 8-bit strings… u-g-l-y. Our product processes video which is obviously sensitive to performance and yet we do as much as we can in Java because of the productivity gains and the cross-platform features it provides. We use C++ mainly to interface with native libraries from 3rd parties, and occasionally in a few places where it is just more suited to the task because of the low-level nature of the bit-twiddling that needs to be done.
The benefits of using Java come from a few places, language features (e.g. Strings), VM features (e.g. hotspot, portability), libraries (Java runtime has a lot more going for it out of the box), and perhaps just as important Tools (Netbeans, Eclipse, visualvm, Ant, etc. vs. VisualStudio).
One of my current big gripes with NetBeans is that it often pauses for around 10 seconds when I switch to it after a while. I even know it’s around 10 seconds because NetBeans now shows a little popup at the bottom now telling you how long it’s stalled for (just to rub it in). Even just closing it down takes ages.
It also felt like your post was implying VS was written in C++ (talk about Java vs C++ and that NetBeans/Eclipse have GC). Large parts of VS are written in .NET and they have been using it for sections for several versions now. For VS 2010 the entire UI was even rebuilt using WPF.
This at least shows that performance is dominated more by the HW and OS its running under than the lang it is written in.
If there is a slow C/C++/.net/whatever app (MS word --whatever) folks don’t go “well C/C++ must be slow”. They know its the coder. Well it is the same in java. Bad code runs like crap. Good code can be very snappy and fast. Its reputation that its java and not the coder is plain wrong.
Now days with such stupidly fast machines, performance is down to the programmer and their understanding of the environment they are coding in.
Remember, programing languages are tools. Not religions. Choose the best tool for the job.
Java is often the right tool for a lot of what i do. Not always, but mostly.
Features suck. It sometimes is very slow. I hate it when doing some C# and ASP.NET.
The problem with Netbeans is not Java. The problem is the bloated Swing UI. I don’t know exactly what’s the problem. But everynow and then your mouse pointer hicups. And for example, you cannot play with even simple menus without serious graphical lag.
Dual Screen using Eclipse makes coding fun. (anyone has a triple screen setup ?)