How inconsistent? Do you mean the above? I think it's pretty sensible, considering that with java generics Foo<Bar> and Foo<Baz> don't have different physical representations and that arrays don't have constructors.
Why put so much effort into a broken language? Just creating objects is so inconsistent and cumbersome. And generics are just a joke to use.
Why put so much effort into a broken language like C++? Pointers are so inconsistent and cumbersome. And templates are just a joke to use.
Nothing works when you try it for the first time. NEVER. I remember the good old times when I just started learning C++ and every program which had 100 lines or more just segfaulted. And later, I thought WinAPI was stupid with its LP(WC)STRs and everything. Now I'm learning Java and Android programming and again, everything looks stupid and complicated.
Ah, yeah I always use ArrayList and I've never used arrays of generic types. I guess it makes sense that you don't specify the type after new because all the values are initialized to null and you have to specify the type when you create each one.
As for naming conventions, they're pretty reasonable, but really they need to invent a ReverseCamelCaseForwardAlpha sort so that the names are in a more logical order. Currently, List and ArrayList are on opposite sides of the world in an alphabetical class listing.
I do agree though that Java needs SOME kind of aliasing syntactic sugar.
I have nowhere near as much fun using java as I have c++ but I haven't had usfull results from c++ yet, however I never learnt to install sfml and only recently got c++11, Im going to spend £30 quid and get that c++11 book and started making loads of fun stuff, I really cant wait to escape what feels like blind mainstream following that is java
EDIT: I feel genuinley unoriginal for using it
Hey if you feel like helping me install a JSON library thing or explaining where to put (and not to put) a JSON jar, please give me ANY JSON advice you have on my JSON thread over their Im actually doing my first serious grown up work I actually feel quite clever and special
@devonrevege Java has 10 primitive types and a Class wrapper for 9 of them:
void -> java.lang.Void
boolean -> java.lang.Boolean
byte -> java.lang.Byte
char -> java.lang.Character
short -> java.lang.Short
int -> java.lang.Integer
long -> java.lang.Long
float -> java.lang.Float
double -> java.lang.Double
<references> -> N/A
You can't reference primitive types, which is why the wrapper classes exist. If you want to reference other references, you need a wrapper class for that too, because references are primitives and cannot be referenced by other references.
@Fredbill, because c++.com is a very good coding forum and java forums arnt as good as c++ forum asking java questions in the lounge.
@LB Oh yeah of course, I see now, I forget that Java is made out of C XD
EDIT: Speaking of java sucking im stuck on something and I dont want to start a new thread because I feel dumb for asking...
In my web hosting file manger thing can I send a java class file there, this class file will have an url, if i send data to that url, and that little class file is a program that expects things being sent to it some how, is THAT how I create a program that can be used like a data base on my website? cos im well stuck.
Well its a higher level language so I thought that when it was being made out of c...making something called int that wasnt the c int but the java int would have been confusing, and that all the libraries used to make all these bits where made outta c too so there would be conflicts when typing int...but i was just being stupid :/