Editor's Choice

Thanks for visiting! If you value what I do, here are some ways you can support my work.
Typing 'go blue' instead of something like 'go east' results in a runtime exception. I take exception to that. Let's fix it.

Recent Articles

(Sep 30, 2022)
Typing 'go blue' instead of something like 'go east' results in a runtime exception. I take exception to that. Let's fix it.
kotlin ]
(Sep 30, 2022)
Converting the enums to Kotlin's preferred rules. Published for the record, whatever that means. Probably means, scan or don't read at all. Nothing to see here, move on ...
kotlin ]
(Sep 29, 2022)
Just a bit more play with the Direction and Room enumerations and related code. Should I work out why 'e' doesn't work, or just make it impossible?
kotlin ]
(Sep 29, 2022)
I don't know quite what we'll do this morning. Something fun. Let's start by talking about good times.
kotlin ]
(Sep 28, 2022)
Often tiny changes can have very desirable effects. When that happens, it may be a sign that things are in decent shape.
kotlin ]
(Sep 28, 2022)
Feeling rather done with Gilded Rose, I take another look at the text game building code. There are issues.
kotlin ]
(Sep 27, 2022)
A periodic republishing of habits that I would like to have. New items at the top, but each issue includes all prior items.
Habits ]
(Sep 27, 2022)
It seems to your faithful author that we've done nearly all we can with the Gilded Rose. We'll take a final look. Or maybe not final. Who knows?
(Sep 26, 2022)
I want to try another approach to the product-type lookup. I have to try it to see if I like it.
(Sep 26, 2022)
We'd like a better way of getting from an items name to its type. We'd like it to be bullet-proof, but not difficult to manage.
(Sep 26, 2022)
A periodic republishing of habits that I would like to have. New items at the top, but each issue includes all prior items.
Habits ]
(Sep 25, 2022)
I was glancing at yesterday's article last night, and noticed some truly odd code that IDEA generated for me. We'll start there, and I have some improvements in mind.
(Sep 25, 2022)
I'm going to start keeping track of the 'resolutions' I make as I program. I'm sure some of these are generally applicable but I'm working in Kotlin as I start this list.
Habits ]
(Sep 24, 2022)
We are supposed to implement a new feature in the Gilded Rose program. Let's do that ... and let's take a look at where we are ... and where we might go. (Final: We go somewhere rather nice!)
(Sep 23, 2022)
The point of a kata is that we do it again and again, practicing to get better. This isn't really a kata, but it's somewhat like one. (Outcome: Two points to GeePaw.) (UPDATE: Not a bug! Woot!)
(Sep 23, 2022)
I do some microtests. Didn't even take an hour, including writing.
(Sep 22, 2022)
Let's see if we can wring a bit more out of refactoring the Gilded Rose. (Some wiggling back and forth to slightly better code.)
(Sep 22, 2022)
Continuing the long refactoring from the previous article.
(Sep 21, 2022)
One course seems obviously better. I shall choose the other.
(Sep 21, 2022)
Articles 76 and 77 are a long, tiny-step refactoring. Here, we'll preview where we started and where we wind up.