Stuff I've learned recently…

I teach this stuff. I didn't say I could do it.

  • Home
  • About Me
  • Groovy
  • Java
  • Kotlin
  • NFJS
  • Teaching
  • Modern Java Recipes now in Early Release

    My latest book, Modern Java Recipes, is now available in Early Release form! If you have a Safari account (the online book repository from O’Reilly), you can add it to your bookshelf at any time. Otherwise, you can get it directly from http://shop.oreilly.com or even at Amazon.com. There are only three chapters in the Early […]

    Ken Kousen

    March 21, 2017
    Java
  • Days Between Dates in Java 8

    I would like to address a problem that is quite topical at the moment: calculating the number of days between two events. The new Date-Time API in Java 8 makes this process much simpler than it used to be. The Date-Time API includes the interface java.time.temporal.TemporalUnit, which is implemented by the enum ChronoUnit in the […]

    Ken Kousen

    January 26, 2017
    Groovy, Java
  • Making Java 8 Groovier: A few annotated examples

    In a couple of weeks, I’m giving two talks at talk at the 2016 JavaOne conference in San Francisco. One of them is called “Groovy and Java 8: Making Java Better“. I’m building examples in preparation for the conference, and as the Groovy community is good about correcting my errors in a friendly way, I […]

    Ken Kousen

    September 6, 2016
    Groovy, Java
  • Fun with Time Zones in Java 8

    [Note: Revised based on suggestions in the comments.] They say that one way to identify a software developer is to whisper the word “timezone” in their ear and see if they shudder. That’s certainly true for me, though my reaction is based more on travel and trying to arrange conference calls across time zones than […]

    Ken Kousen

    July 16, 2016
    Groovy, Java
    Groovy, Java
  • Excluding Gradle Tasks with a Name Pattern

    I’ve been spending a lot of time with Gradle build files in Android projects, which probably isn’t a big surprise given that I’m working on a book called Gradle Recipes for Android (coming soon to all your better ebook stores and (who knows?) maybe an actual, physical bookstore somewhere (but probably not), but you can […]

    Ken Kousen

    April 20, 2016
    android, Groovy
    android, Groovy
  • Retrofitting Groovy

    I’m teaching an Android development class this week, and one of our primary references is the book Android 6 for Programmers, 3rd edition, which was released last December. One of the examples in the book accesses the Open Weather Map RESTful web service and builds a UI around the results, which is pretty much the […]

    Ken Kousen

    April 7, 2016
    android, Groovy
    android, Groovy, Retrofit
  • A Groovy approach to npm-gate

    Recently the JavaScript community experienced a serious disruption when a developer removed one of his deployed libraries from the central npm server, an event now being referred to as npm-gate. I don’t want to get into the various ethical, moral, or legal issues about that here. Rather, I want to show how trivially the missing functionality […]

    Ken Kousen

    April 2, 2016
    Groovy
  • The Shadow Knows Gradle

    Someone recently complained on Twitter that the so-called Shadow plugin for Gradle, written by the inestimable John Engleman, no longer worked on Gradle 2.11 or 2.12. Commenters were quick to point out that the latest version (1.2.3) of the plugin did work. I thought I’d put together this quick blog post to demonstrate that it […]

    Ken Kousen

    March 14, 2016
    Groovy
  • Rough cut of Gradle Recipes for Android now available

    My latest book, Gradle Recipes for Android, is now available as a “Rough Cut” at O’Reilly. You can get it at http://shop.oreilly.com/product/0636920032656.do. Rough cuts are preliminary versions of O’Reilly books, which are released while a book is still in progress, without special effort taken for formatting or anything else. In this case, however, the rough […]

    Ken Kousen

    September 27, 2015
    Groovy
    android, Gradle, Groovy
  • My father, at the end

    Back May of 2010, my mother called to let me know that my father was going into the hospital for minor surgery. There was nothing to worry about, and no reason for me to drive all the way there just to see him, especially since he was only going to be in the hospital for […]

    Ken Kousen

    August 9, 2015
    Groovy
Previous Page
1 2 3 4 5 … 23
Next Page

About the Blog

Stuff I’ve Learned Recently chronicles my adventures in the world of teaching software development, primarily focused on Java and related languages, like Groovy and Kotlin. I also teach Spring, Android, Gradle, and more.

Popular Posts

  • Groovy Podcast, Episode 88 (S06E03)October 9, 2022
  • Groovy Podcast, Episode 87 (S06E02), with Ken Kousen and Sergio del Amo CaballeroJune 16, 2022
  • Spring’s queryForStream MethodMay 26, 2022

Newsletter

Subscribe to our email newsletter for a weekly dose of travel inspiration.

Blog at WordPress.com.

 

Loading Comments...