Kotlin

Real Programming S01E04: Into The Frying Domain!

This entry is part 4 of 4 in the series Real Programming

Real Programming S01E04: Into the Frying Domain! We have two parts of our walking skeleton, the View and the Model. This time we’ll move a tiny amount of work into the domain classes If you want to follow along in the code, the project is https://github.com/geepawhill/yz Welcome to episode four of Real Programming, the show where the slogan is still a work in progress. Last time, we had our view and our model and I remarked that that was two …

Real Programming S01E04: Into The Frying Domain! Go to Post »

Real Programming S01E03: Baby Needs New Shoes!

This entry is part 3 of 4 in the series Real Programming

Real Programming S01E03: Baby Needs New Shoes! Watching those itty-bitty numbers for the dice is making me crazy, so let’s get some dice images going today! If you want to follow along in the code, the project is https://github.com/geepawhill/yz (Note: Transcript and closed captions to be added soon.)

Real Programming S01E02: Look, Ma! A Test!

This entry is part 2 of 4 in the series Real Programming

Real Programming S01E02: Look, Ma! A Test Last time we did a rapid-fire model/view split, just so we could test. Now we gotta test this bad boy a little! If you want to follow along in the code, the project is https://github.com/geepawhill/yz Hey, it’s GeePaw and I still have Wally, and Molly’s off camera, and we’re back with Real Programming: the show that still doesn’t have a slogan, but that’s OK. We’ll keep going. Anyway, when last we left you, …

Real Programming S01E02: Look, Ma! A Test! Go to Post »

Real Programming S01E01: Getting Started | Video

This entry is part 1 of 4 in the series Real Programming

Real Programming S01E01: Getting Started Hi Folks! In this first episode we lay the groundwork for a simple desktop Yahtzee application. If you want to follow along in the code, the project is https://github.com/geepawhill/yz Transcript Hey, folks. It’s GeePaw sitting out here on my deck, where I do most of my work in the summer months. And today is the first episode of my new series called real programming, the show where we don’t have a cool slogan yet. Anyway, …

Real Programming S01E01: Getting Started | Video Go to Post »

TDD Pro-Tip: Suspect Sentinel Returns

TDD Pro-Tip: I suspect sentinel returns, and though I still use them, it’s generally because I haven’t found the right formulation yet. I’m working on the TSD project today, and I’ve got a nasty little chunk of code I wish weren’t nasty. (It’s in this file, and of course, you’re welcome to grab the whole repo, which will enable you to really make fun of me.) You don’t have to look at the code, I’m not going into it, but …

TDD Pro-Tip: Suspect Sentinel Returns Go to Post »

Using Kotlin for Data Builders

In Kotlin, functions whose last argument is a lambda, i call them end-lambda’s, make natural expressions of tree-shaped data builders. Say you’re building Performances, where a Performance includes (possibly) the list of songs being performed. making shit up here, it might look like: performance { song { } song { } } First thing you notice: this thing is building some tree-shaped data, and it’s tree-shaped. None of this "song1= … song2= … performance = Performance(song1, song2) shit. If you’re …

Using Kotlin for Data Builders Go to Post »

Scroll to Top