4 ms·
I think it's because Java is just plain and simple a boring language. I agree for the most part. I make my college programming projects fun by finding uses for
by tkahn6 16y ago
I think it's because Java is just plain and simple a boring language.
I agree for the most part. I make my college programming projects fun by finding uses for the Reflections API.
Check out 'invoke'.
http://download.oracle.com/javase/1.4.2/docs/api/java/lang/reflect/Method.html http://download.oracle.com/javase/1.4.2/docs/api/java/lang/r...
- rb2k_ 16y agoThat's cool, but the sad part is that this is a common feature with most other languages and not just some added library. Still great that you show what's possible :) Also: does anybody know why Java core classes don't have examples in the documentation? (compare: http://ruby-doc.org/core/classes/String.html http://ruby-doc.org/core/classes/String.html )
- tkahn6 16y agothe sad part is that this is a common feature with most other languages yep. I was hoping they would add closures before I graduate but it doesn't look like it.
- brazzy 16y agoUm... reflection is a core feature of Java, and has been since Java 1.1
- rb2k_ 16y agoOh sorry then, I don't use Java a lot these days... It just seemed weird to me that I had to include it. I'm used to this functionality being available without any additional steps because it is implemented in something like an "Object" class. (Lots of Ruby these days)
- megamark16 16y agoA coworker and I were just talking about this, and we decided that it was probably due to the fact that a lot of documentation in Java and .NET is auto generated based on the code comments, which are highly standardized and strictly enforced. Most languages have tools for generating documentation based on code comments, but in Java and .NET you usually end up with a lot of "Here's the signature of the constructor for this class, and here's a list of methods and members." It's lame, and often pretty useless.