X

Refactoring to Functional Style with Java 8

Are you programming in a functional style? Venkat Subramaniam shows how to transition from an imperative to a functional style.  In this JavaOne session, he presents new APIs and what to look for while programming in a functional style. With functional style, your code is concise, more expressive, easier to understand, and easier to change. He describes 6 different exercises in which he first programs in an imperative before transitionning to a functional style. 

A breakdown of his presentation by topic:

  1. Functional style 
  2.  Exercise 1: is Prime 
  3.  Exercise 2: Lines count  
  4.  Exercise 3: Grouping  
  5.  Exercise 4: Decorator  
  6.  Exercise 5: Pythagoarean triples  
  7.  Exercise 6: Sum of sqrt of k primes starting with n 

His code samples are available at http://www.agiledeveloper.com/downloads.html

Join the discussion

Comments ( 1 )
  • medona martein Saturday, October 8, 2016
    Stay up the good work! You already know, many persons are looking round for this information, you could help them greatly.
    pogo support phone number
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha