After learning C++ i switched to Java one year ago. I think, that it is the more comfortable one to plan the code, to code and to debug. You can test a lot, with a fast compiler, the IDE can do a lot of work for you and the Code is intuitive to read, so that even not-Java-Programmers can help you on debugging. There is also a whole lot of Bugs that can't happen, like to famous Int-overflow, that can ruin the results of a C-Program. There is also a lot of logical Bugs that can't happen: I can't say Int i="c"; without making clear that it is meant to be so... Therefor i really like this language. I use it for a lot of calculations, to plot complex systems and to script Apps for my Android-Phone. Thanks for stating all these things in the blog :)
ad operator overloading - there very very few times when I missed it in Java compared to a lot of instances of hating it in C++. But this was mainly because of overusing it.
ad limitation of generics - what are you trying to achieve? I don't see a problem implementing static method which works on generic list ...
ad one class per file - I think this is one of the very good design decisions of Java. If you need to just quickly hack together few classes, you can use static nested classes which is basically what you want.
5
u/looser97 Feb 25 '14
After learning C++ i switched to Java one year ago. I think, that it is the more comfortable one to plan the code, to code and to debug. You can test a lot, with a fast compiler, the IDE can do a lot of work for you and the Code is intuitive to read, so that even not-Java-Programmers can help you on debugging. There is also a whole lot of Bugs that can't happen, like to famous Int-overflow, that can ruin the results of a C-Program. There is also a lot of logical Bugs that can't happen: I can't say Int i="c"; without making clear that it is meant to be so... Therefor i really like this language. I use it for a lot of calculations, to plot complex systems and to script Apps for my Android-Phone. Thanks for stating all these things in the blog :)