• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Use of new Java 8 APIs in assignment?

 
Stephen Jordan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

First time poster here. I started working on the Oracle Certified Master, Java SE 6 Developer assignment a couple months ago. This forum has been incredibly helpful so thanks for that.

Anyway, I just have a question regarding the use of the new APIs introduced in Java 8, since this will be the JDK I'm required to use. I'm just wondering if it makes sense to exclude the new features ( lambdas, method referencing, Streams, etc) from my assignment submission for simplicity purposes. I personally love these new features in java but the assignment does say it should be easily understandable by Junior developers and functional programming concepts aren't easy to grasp for someone who hasn't used it before.

What do you think? I think I could argue it either way in my choices.txt but I'd be interested in hearing some opinions on it.

/Stephen
 
Roel De Nijs
Sheriff
Posts: 10666
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Stephen Jordan,

First of all, a warm welcome to CodeRanch!

Stephen Jordan wrote:Anyway, I just have a question regarding the use of the new APIs introduced in Java 8, since this will be the JDK I'm required to use. I'm just wondering if it makes sense to exclude the new features ( lambdas, method referencing, Streams, etc) from my assignment submission for simplicity purposes. I personally love these new features in java but the assignment does say it should be easily understandable by Junior developers and functional programming concepts aren't easy to grasp for someone who hasn't used it before.

What do you think? I think I could argue it either way in my choices.txt but I'd be interested in hearing some opinions on it.

If you decide not to use the new Java 8 APIs, I would definitely add this in choices.txt. Otherwise you risk losing points, because you didn't show good knowledge of the Java API as you didn't use it to its full extent.

If I were you I would simply use the new Java 8 APIs. There's no reason I can think of that would justify not to use them. If you currently are a junior developer, you have to know about functional programming concepts; otherwise within 2-3 years you won't have a job anymore. And if you have had a good education, students will nowadays have a good understanding about functional programming concepts when they graduate. But I would of course make sure the code is still simple and easy to understand. The Stream API relies heavily on method chaining which can result in complex and hard to understand code. So I would try to avoid code with a boatload of method chaining as it's getting complex and hard to understand

Hope it helps!
Kind regards,
Roel
 
Stephen Jordan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Roel,

Thanks for the feedback. I was thinking of doing something similar but it's good to get a second opinion. I'll use the new features and avoid extensive method chaining. It makes too much sense to avoid using lambdas, especially for an application such as this where there are several Action Listeners to implement.

Cheers,
Stephen
 
Roel De Nijs
Sheriff
Posts: 10666
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stephen Jordan wrote:It makes too much sense to avoid using lambdas, especially for an application such as this where there are several Action Listeners to implement.

True! And as mentioned earlier not doing so could be interpreted as "he doesn't know the Java API very well" so he'll lose some points on e.g. "General considerations".

And just out of curiosity: which course will you attend (or have you already attended) to fulfill the mandatory course requirement?

Happy coding!
Kind regards,
Roel
 
Stephen Jordan
Greenhorn
Posts: 9
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good point!

I haven't sat it yet but I was planning on doing the Java Performance Tuning with Mission Control & Flight Recorder course since I haven't had too much exposure to fine tuning java applications with these tools yet.
I considered the Java SE 8 Programming course but from looking at the syllabus it looks like it's aimed more towards preparation for the Oracle Certified Professional and Java SE 8 Programmer Exams, which I've already passed.

Thanks,
Stephen
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic