Summary of JDK1.5 Language Changes 839
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."
Programming shortcuts (Score:5, Funny)
I agree. This is why I never create my own functions or methods. Evey program should be just one big function.
Longing for the good ol' days (Score:5, Funny)
Q: What's wrong with happy/contrived Q&A "articles"?
A: I was hoping you'd ask!
While humor and a semi-light tone are good ways to make technical discussions accessible to more people, treating folks like children who need to be entertained and talked-down to does more to alienate professional developers than it does to attract new converts.
Having said that, I am *really* looking forward to the "foreach" in 1.5 and the auto-boxing/un-boxing. While mucking with an established language is tricky - and potentially dangerous (from an acceptance p.o.v.) - the community process seems to be working out well for Sun and giving developers what they have wanted for years.
Let's just hope that the next "preview" of new features is more in the style of traditional FAQ's.
Wow, how intelligent (Score:5, Funny)
Hell, lets write everything on fucking Turing machines then.
programming shorthand (Score:5, Funny)
My code was hard to write to it should be hard to read.
One line summary (Score:5, Funny)
Shorthand programming (Score:5, Funny)
#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)
Re:Programming shortcuts (Score:2, Funny)
You wanna fire me? Have fun sorting out my code! It's commented in yiddish, if at all!
Re:FreeBSD Support (Score:2, Funny)
Re:Shorthand programming (Score:2, Funny)
#define begin }
#define end {
but by far my favorite was:
#define ONION UNION
#define RINGS REGS
so I could declare a structure:
struct ONION RINGS o;
for doing VESA interrupts.
Thought Police (Score:1, Funny)
Re:Article didn't mention new concurrency stuff (Score:3, Funny)
Sounds like a "super" class to me.
Re:Wow, how intelligent (Score:4, Funny)
I love the language. It's the lack of libraries that kills you.
Re:Programming shortcuts (Score:3, Funny)
Maybe it's just me, but I think operator overloading is closer to syntactic poison than syntactic sugar
Re:ooooh baby (Score:5, Funny)
You don't get out much, do you?
When are people going to learn... (Score:0, Funny)
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
Re:Article didn't mention new concurrency stuff (Score:3, Funny)
Sounds like a "super" class to me.
Sounds like a porn star's name to me.
The Six-Million-Dollar Sweetener (Score:2, Funny)
I often also enhance myself with sugar.
Re:Looking to Get Back into Java (Score:3, Funny)
Harsh.
Very cruel man.
Re:I think these are all great... (Score:3, Funny)
Re:Wow, how intelligent (Score:3, Funny)
Re:enumerators (Score:4, Funny)
Yeah, but... (Score:5, Funny)
Sig (Score:2, Funny)
Re:Uglification? (Score:2, Funny)
Re:Shorthand programming (Score:1, Funny)
#define IS_NOT_IS_TOO_IS_NOT_FINE_HAVE_IT_YOUR_WAY !
if (IS_NOT_IS_TOO_IS_NOT_FINE_HAVE_IT_YOUR_WAY (flag & VAL1) || (flag & VAL2)
I pity the software engineer... (Score:2, Funny)
Uh,