• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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: 158
11
  • 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: 75615
354
  • 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.
 
What do you have to say for yourself? Hmmm? Anything? And you call yourself a tiny ad.
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic