Ken Kousen
Ken Kousen
@kousenit@kousenit.org

I am a Java Champion and the author of the books “Mockito Made Clear” and “Help Your Boss Help You”, (Pragmatic Bookshelf), “Kotlin Cookbook”, (O’Reilly Media), “Modern Java Recipes” (O’Reilly Media), “Gradle Recipes for Android” (O’Reilly Media), and “Making Java Groovy” (Manning), as well as over a dozen video courses at Safari Books Online. I’m a regular member of the No Fluff, Just Stuff conference tour and have given talks all over the world. Through my company, Kousen IT, Inc, I’ve taught training courses to and worked with thousands of developers.

241 posts
8 followers
  • Where have I been (my Google Maps Mashup)?

    The user interface leaves a lot to be desired, but my Google Maps mashup went live today. If you want to see where I’ve taught courses over the past three years, you can go here and see. All of the data is stored in a very simple database consisting of three tables: Courses, Locations, and…

  • MyEclipse + JPA + Spring + Hibernate = DAO (mostly)

    I just about have my Google Maps mashup working. When it’s deployed, it’ll show markers for each location where I’ve taught a course. Eventually I’ll filter them by year, connect them to home with polylines, and maybe more. As a mashup, it’s not the most interesting application ever written, but it’s given me a good…

  • Trivial Geocoding with Google and Groovy

    I’m building a simple Google Maps mashup that will show where I’ve given classes over the past few years. It’s not much, but it’s an easy demonstration of the technology and, even better, an easy way for me to learn the Google Maps API and to play with Groovy some more. As for Google Maps,…

  • Quick Google Maps test

    Google maps claims you can add a map to any web page in three clicks. I thought I’d give it a try here. I’m planning to build a mashup featuring all the places I go to teach classes, but I’ll start small. Here’s the code Google tells me to paste in here. View Larger Map…

  • Groovier Box Scores

    I made a couple more fixes to my box scores script to make it a bit groovier. First is a trivial one, but it’s much more in the Groovy idiom than in Java. I replaced def cal = Calendar.getInstance() with def cal = Calendar.instance Groovy automatically uses the getter if you access a property of…

  • Groovy Box Scores (minor correction)

    I noticed running the Groovy code I posted the other day that I accidentally reversed home and away. It’s not critical, because I still got the URL right, but it’s better to be right. The fix was just to switch the groups: away = m.group(1) home = m.group(2) and then to update the ${away} and…

  • Groovy Box Scores

    Long ago I decided the best thing about Ruby on Rails was Ruby. Ruby is a great language, with a friendly community and lots of samples to learn from. Still, it’s quite a radical change from Java, which is the language where I am most comfortable. That brought me to Grails, on a journey I’ve…

  • Green Monster time

    Xander and I had our trip to Fenway today, with my first time ever sitting on the Green Monster.  The weather was great (low 80s, partly cloudy, with a nice breeze), the seats were excellent (Section 5, Row 1, Seats 9 and 10 — basically middle of the front row), and the Sox scored six…

  • It’s not all Gagne’s fault

    I’ll keep this short and sweet. Yes, if it wasn’t for Eric Gagne, the Red Sox probably would have swept all three games against the Orioles rather than lose two of three. Yes, the Yankees are playing video game baseball right now and may win no matter what we do. But somebody please, please explain…

  • I got Potterred

    Here I am, minding my own business, digging into Struts 2.0, when an owl from Amazon.com delivered a package on my doorstep on Saturday. There was a book inside. To be honest, it wasn’t completely unexpected. I stopped reading the Harry Potter series after book 5, because I really didn’t like the extended scenes of…