Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Book question: lambda expressions and existing projects  RSS feed

 
Rolf Schuch
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know if this is answered in Kishori's books: I work on a Struts web application with lots of legacy code. Do you have examples of how the power of lambda expressions can help improve code in existing projects without spending an awful lot of time on refactoring?

Also, which of your books is best for experienced Java programmers who want to learn what's new in Java 8?
 
Junilu Lacar
Sheriff
Posts: 10879
158
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would guess that Beginning Java 8 Language Features and Beginning Java 8 APIs, Extension and Libraries are books that you would want to look at.

As far as refactoring legacy code to use lambda expressions, I think there are certainly opportunities to leverage the expressiveness and elegance that lambda expressions can bring but unless things are absolutely horrible in your legacy code, I would be inclined to leave well enough alone.
 
Kishori Sharan
Author
Greenhorn
Posts: 21
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Rolf,
Junilu has answered your question correctly.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!