Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • 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 ...
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Pragmatic Unit Testing in Java 8 with JUnit: before Java 8

Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good evening all,

I was wondering why did you explicitly brand the book as Java 8?

Is this really the case and don't you think it might scare off people working with < Java 8
or with other languages...

Kind regards,

Posts: 799
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Great question, thanks Yvette.

Honestly: I threw Java 8 into the title when I first started writing, to tell myself that the book would seek to take advantage of the newer features to help explain unit testing. When finished, I realized that Java 8 or not was a non-issue--it makes for tighter code (often, not always), but it wasn't a primary focus of the book as I'd originally intended. That's ok--the important stuff is the concepts and approaches to unit testing.

For someone who doesn't know Java 8, my thought was that it's fairly easily read and understood. Reading a short article should be enough to clarify the use of lambdas in the book for anyone not familiar.

My personal bent is to prod advances in the language, and maybe push people a little. I hope for the book to survive at least 5 more years, and as such I preferred using 8 (which is almost a year into GA at this point). I also prefer a more functional approach given that I've been doing a bunch of Clojure lately.

As far as the title: I realized late in the game that I'd prefer not mentioning the Java version, but PragProg prefers it that way for now--I think we de-emphasized it a bit.

    Bookmark Topic Watch Topic
  • New Topic