Question for Java p...
 

Subscribe now and choose from over 30 free gifts worth up to £49 - Plus get £25 to spend in our shop

[Closed] Question for Java programmers

11 Posts
7 Users
0 Reactions
53 Views
Posts: 91096
Free Member
Topic starter
 

Any on here?

How many of you use the new features of 1.5 and 1.6 in your daily job?


 
Posted : 19/03/2009 3:58 pm
Posts: 0
Free Member
 

I use generics, which I think were added in 1.5

i.e. List<RandomStuff>

Dave


 
Posted : 19/03/2009 4:01 pm
Posts: 31206
Full Member
 

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


 
Posted : 19/03/2009 4:30 pm
Posts: 91096
Free Member
Topic starter
 

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.


 
Posted : 19/03/2009 4:58 pm
Posts: 7982
Free Member
 

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.


 
Posted : 19/03/2009 7:46 pm
Posts: 0
Free Member
 

Generics is where I see most use of the new features.


 
Posted : 19/03/2009 7:55 pm
Posts: 12079
Full Member
 

Generics, and annotations when we do EJB3.0 and JUnit4.

And those neat for(Object o : myList) loops too.


 
Posted : 19/03/2009 8:33 pm
Posts: 19
Free Member
 

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]


 
Posted : 19/03/2009 9:11 pm
Posts: 31206
Full Member
 

I reckon Java is dying a bit, especially on the desktop. C# is shooting ahead with the new features like LINQ and functional programming.


 
Posted : 19/03/2009 10:54 pm
Posts: 91096
Free Member
Topic starter
 

C# still gaining ground cos it's new. How is functional programming new tho?

I read about generics this afternoon - all cool stuff 🙂


 
Posted : 19/03/2009 11:18 pm
Posts: 19
Free Member
 

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


 
Posted : 19/03/2009 11:42 pm
Posts: 31206
Full Member
 

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]


 
Posted : 20/03/2009 12:16 am