Subscribe now and choose from over 30 free gifts worth up to £49 - Plus get £25 to spend in our shop
Any on here?
How many of you use the new features of 1.5 and 1.6 in your daily job?
I use generics, which I think were added in 1.5
i.e. List<RandomStuff>
Dave
Not used Java in a while, mostly C# these days, but yeah generics were used everywhere.
Maybe ask the same question here:
http://stackoverflow.com/questions/tagged/java
I am just reading up on generics, and it strikes me that a lot of people would probably not use them out of habit. But then again, they've been there a long long time now and I am well out of touch.
I'm so screwed with my job hunting.
I thought the "for each" iterator in 1.5 was great, but I haven't used Java for a few years now. Switched to C# in my final year at Uni.
Generics is where I see most use of the new features.
Generics, and annotations when we do EJB3.0 and JUnit4.
And those neat for(Object o : myList) loops too.
Second/Third Genetics, very useful for improving code quality
I also like JSR 223 which allows scripting for the Java language.
If you are thinking of developing UIs in java take a look at [url= http://www.jidesoft.com/ ]JIDE[/url]
I reckon Java is dying a bit, especially on the desktop. C# is shooting ahead with the new features like LINQ and functional programming.
C# still gaining ground cos it's new. How is functional programming new tho?
I read about generics this afternoon - all cool stuff 🙂
Java is a middle tier language. I think a lot of problems come from the difficulity of intergrating with COM or DLLs.
Java dosn't seem to have as many good visual components as C# or Delphi.
Saying that it is possible and I use it for windows desktop development
Yeah [url= http://en.wikipedia.org/wiki/Functional_programming ]Functional Programming[/url] isn't a new concept, but few commercial languages have built-in support for it and there is a growing interest in it as people look at Haskell and F#.
C# already supports closures, lambdas, expression trees and type inference.
So you can easily do stuff like:
[code] // Echo everything in source that is greater than 5
int[] source = new[] { 3, 8, 4, 6, 1, 7, 9, 2, 4, 8 };
foreach (int i in source.Where(x => x > 5))
Console.WriteLine(i);[/code]
Or more impressive stuff like writing a functional version of QuickSort:
[code]Func<intlist, intlist> Sort =
xs =>
xs.Case(
() => xs,
(head,tail) => (Sort(tail.Where(x => x < head)))
.Concat
(Single(head))
.Concat
(Sort(tail.Where(x => x >= head)))
);[/code]
