Groovy “tutorial” chapters added to Making Java Groovy - No Fluff Just Stuff

Groovy “tutorial” chapters added to Making Java Groovy

Posted by: Kenneth Kousen on September 17, 2011

One of the lessons I learned during the first 1/3 review of Making Java Groovy is there are two kinds of developers interested in the book: those who already know both Groovy and Java, and those who are only comfortable with Java. The goal all along has been to show how Groovy and Java can work together, and to do that I need to rely on a certain minimum knowledge of Groovy. I originally planned to add an appendix to the book that would act as a Groovy tutorial for those readers who wanted it, with special attention to existing Java developers who hadn’t worked with Groovy yet.
While that plan was arguably reasonable, I quickly learned that I needed to add those tutorial chapters sooner rather than later. Java developers reading the MEAP (Manning Early Access Program) were almost immediately out of their depth, and knowing that a tutorial chapter was going to be added eventually didn’t help.
Therefore, two new chapters have been added to the MEAP over the past few weeks. One is called ”Groovy by Example,” and is the new Chapter 2. In this new chapter, I walk through a few small but non-trivial examples of interesting problems that I solve with Groovy, highlighting aspects of the language as I go. I hope the Java developers find that helpful, and the Groovy developers like the approach, or at least like the applications. I especially go through my Groovy Baseball example in some detail, which hopefully readers will find interesting.
The other new chapter is called “Groovy by Feature”, which is a more traditional tutorial introduction to Groovy, filled with small, self-contained snippets of Groovy code for each feature. The plan was for this to be a regular chapter, but we (my editor, mostly) realized that it probably works better as Appendix A, which is where it is now.
By following the standard tutorial approach in one chapter and an example-based approach in another, hopefully I’ll meet the needs of developers with either learning style.
Now that those are in the MEAP, I’m working on the chapter on testing, which will include GroovyTestCase, StubFor and MockFor, Expandos, and, of course, Spock. I’m still trying to decide whether to include sections on easyb and Cucumber, or whether that will make the chapter too long. Any feedback is welcome on that.
Btw, this weekend I’m at the No Fluff, Just Stuff conference in Atlanta. I’ll also be giving a few presentations at the SpringOne2GX conference in Chicago in October. Feel free to stop by and say hi. :)

Kenneth Kousen

About Kenneth Kousen

Ken Kousen is a Java Champion, several time JavaOne Rock Star, and a Grails Rock Star. He is the author of the Pragmatic Library books “Mockito Made Clear” and “Help Your Boss Help You,” the O'Reilly books “Kotlin Cookbook”, “Modern Java Recipes”, and “Gradle Recipes for Android”, and the Manning book “Making Java Groovy”. He also has recorded over a dozen video courses for the O'Reilly Learning Platform, covering topics related to Android, Spring, Java, Groovy, Grails, and Gradle.

His academic background include BS degrees in Mechanical Engineering and Mathematics from M.I.T., an MA and Ph.D. in Aerospace Engineering from Princeton, and an MS in Computer Science from R.P.I. He is currently President of Kousen IT, Inc., based in Connecticut.

Why Attend the NFJS Tour?

  • » Cutting-Edge Technologies
  • » Agile Practices
  • » Peer Exchange

Current Topics:

  • Languages on the JVM: Scala, Groovy, Clojure
  • Enterprise Java
  • Core Java, Java 8
  • Agility
  • Testing: Geb, Spock, Easyb
  • REST
  • NoSQL: MongoDB, Cassandra
  • Hadoop
  • Spring 4
  • Cloud
  • Automation Tools: Gradle, Git, Jenkins, Sonar
  • HTML5, CSS3, AngularJS, jQuery, Usability
  • Mobile Apps - iPhone and Android
  • More...
Learn More »