Summary of JDK1.5 Language Changes
An anonymous reader writes "Over at java.sun.com, there's an informative article about the new features in JDK1.5. Some of the changes like generics are nice and should make some things easier. Some of the enhancements to me are purely sugar, like enumerators. When it comes down to it, once the code is compiled, it's the same. The thing I hope is, some of this new syntactic sugar doesn't result in more obfuscated code. Unlike some people, I feel using programming shorthand leads to increased maintenance. This is especially true when you have to debug a complex application."
I agree. This is why I never create my own functions or methods. Evey program should be just one big function.
I feel using programming shorthand leads to increased maintenance
:)
My code was hard to write to it should be hard to read.
Java adds four new syntaxes, Python's for loop, Perl type checking at compile time, something called 'metadata', and C enumerations, all of which impove compile time type checking at the expense of making the source code look and feel like perl.
#define FOREVER for(;;)
#define BEGIN {
#define END }
#define ONE 1
#define PUSHORT unsigned short *
#define DONE goto end
The first thing an amateur programmer does when assigned a new project in C/C++ is to go redefine the language and all the types. I scolded them for these kinds of things, knowing that once they were forced to read other people's code often that they would realize how stupid these kinds of things are. Unfortunately, once I started my career in embedded development, I quickly learned how stupid I must have been to think that people left these behaviors behind in college... (all the above examples are taken from "professional" code that I've seen in the last few weeks)
...just my 2 gil.
It'd be about time Sun ported it to FreeBSD (the ONE thing lacking from it) but as you know, FreeBSD is dying so why bother.
Don't you mean /.?
AtomicLong? Born in the heart of a nuclear furnace, endowed with the power of the atom, it's a bird, it's a plane, it's AtomicLong!
;)
Sounds like a "super" class to me.
AHHHHHHH! I'm burning with goodness again!
- Reakk, Sluggy Freelance
Typesafe enums. That alone makes me quiver with happiness.
You don't get out much, do you?
(Score:-1, Wrong)
....that C++ is perfect and using other languages is useless. .asm have always been easier for me to grasp I guess....no hiding things, what you put in is what you get out. Smalltalk is cute though. :)
C++ does it all, does it faster and although may be harder to learn, allows the programmer to make the choices. I've always beleived that if learning a high leval language like C++ is too complicated for you, you have no business working on anything even remoatly serious. I have always felt like I am being held back with most other languages, including Java, but with C++ I have felt like I can do anything. I have choice over pointers, generics, classes, friend fuctions....I guess I love the fact C++ allows you to break all the rules...which can lead to clever tricks....it's beautiful. Lower leval languages, as well as
AtomicLong? Born in the heart of a nuclear furnace, endowed with the power of the atom, it's a bird, it's a plane, it's AtomicLong!
;)
Sounds like a "super" class to me.
Sounds like a porn star's name to me.
(Score:-1, Wrong)
I often also enhance myself with sugar.
I consider it to be on par with FrontPage.
Harsh.
Very cruel man.
"Live Free or Die." Don't like it? Then keep out of the USA
They can't make the syntax easy to read. If they did, then it would be called Python.
That's what we've been using but my fingers get tired from typing all that extra crap in...
Arguably the most terrifying sig I've ever seen.
Damn, me too. That's what I wrote as well.
The next Cmdr Taco duplicate will be ready soon, but subscribers can beat the rush and see it early!
who has to implement the new javac.
... wait, that would be me.
Uh,