• 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

Java 8 collections

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Java 8 lambda's and streams are introducing a newer - and better - usage of collections.

Two years ago we switched to a polyglot programming (Java & Scala) because we write a lot of data processing code. Lots of iterating, filtering, intersecting, ....
However, we are not fully committed to Scala perse. From a tooling perspective and learning curve it's always better to have one language instead of a bunch of them.

In your opinion would it be worth reverting again ? A good reason would be the amount of data processing coding is now comparable to Scala. Or any other reason maybe ?

Thanks !
 
Author
Posts: 31
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jan Goyvaerts wrote:The Java 8 lambda's and streams are introducing a newer - and better - usage of collections.

Two years ago we switched to a polyglot programming (Java & Scala) because we write a lot of data processing code. Lots of iterating, filtering, intersecting, ....
However, we are not fully committed to Scala perse. From a tooling perspective and learning curve it's always better to have one language instead of a bunch of them.

In your opinion would it be worth reverting again ? A good reason would be the amount of data processing coding is now comparable to Scala. Or any other reason maybe ?

Thanks !



Hi Jan,

I would happily use Java instead of Scala for writing that kind of code with Java 8. Previously I think Scala would have had an advantage. If I were in your shoes of thinking about reverting I would do the following:

1. Evaluate how well your tooling works in Java 8. Some things (libraries, IDEs etc.) may not work yet and it would be worth waiting until you get the full on Java experience with Java 8 before upgrading.
2. Figure out what pain points you have with Scala. Is it slow compile times and broken tooling? If so then its likely that Java 8 will help. If there are other issues then a change of language may not be so valuable.
3. Are you using other Scala language features that you would miss if you moved back to Java? (For example case classes, immutable collections, etc.)
4. Prototype. This is so important when considering this kind of change and its something that people often fail to do. Try spending a bit of time porting some of your Scala code to Java 8 and see what happens. I know it may be hard to justify spending time on prototyping, but it genuinely does reduce the risks associated with change and help your understanding of the problem space.

regards,

Richard
 
Hey! You're stepping on my hand! Help me tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic