• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Modern Java Recipes

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI Ken

  Great name! What do you think is the most common coding challenge that Java developers struggle to work out? What recipe do you have for this? Thanks.


Ken
 
gunslinger & author
Posts: 169
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For Java developers moving to Java 8, the whole transition from our existing way of thinking to a stream-based approach is the biggest challenge. You have to learn how to think in terms of transformations rather than loops, and filters instead of if statements, and so on. Throw in the move to using Optional whenever a result might be null, and getting to know the new functional interfaces in the java.util.function package, and in many ways it feels like a completely new language.

Of course, that's what virtually the entire book is about.
 
Marshal
Posts: 79153
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wasn't that the whole idea of Java8? So many people were moving onto a declarative mode that Java® was looking very dated. Not only does Java8 save lots of boilerplate, but it also allows you to use a declarative idiom as Stephan says here.

I think another challenge is in academia: get people to teach Streams and λs to beginners rather than as advanced topics.
reply
    Bookmark Topic Watch Topic
  • New Topic