Thursday, November 12, 2015

Kotlin Gradle Blooper!

This weekend I had a blast working through the Kotlin Koans, so I thought I'd fire up my IDE and try my hand at porting one of my existing hobby projects from Groovy to Kotlin.

As I began working on it, I was surprised to notice that some of the cool features from the Koans and other examples online weren't available to me in my project -- things like doing, listOf(), and even forEach on my List<> objects.

My build.gradle file was including the kotlin-gradle-plugin, of course, but if you want all the goodies, you've got to also include the Kotlin Standard Library:

dependencies {
    compile 'org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version_number'

Naturally, the instructions for configuring dependencies for the Kotlin Gradle plugin say very clearly to include it, and they even give a full example. I guess in my excitement I just skipped over that part! My bad, yo.

So... if you're a Kotlin newb like me and your code seems to be missing some major Kotlinness, be sure to include the Standard Library!

Leeds out.

Thursday, May 1, 2014

Happy Birthday, BASIC!

Birthday cake... worst pixel art ever!

I haven't written a lick of BASIC in years, now. But because 2014 marks its 50th anniversary, I simply have to tip my hat to the language that introduced me to programming back when I was a kid.

According to the wikipedia article for Dartmouth BASIC, May 1, 1964 is recorded as the date when Kemeny and McGeachie successfully fired off their first BASIC command. As for me, I didn't successfully fire off my first BASIC command until almost twenty years later. I was

Tuesday, April 1, 2014

Java 8 Collection Updates - Slides and Code

Here are the slides from my presentation at the Nashville Java User Group on April 1, 2014. Also, I've got the Hack-n-Slash code samples from the presentation available on GitHub. They run as JUnit tests, so you can explore them, tinker with them, and see them in action!

Profile Picture
Dave Leeds
My Hobbies:
  • Programming
  • Cartooning
  • Music Writing
Full Profile