TDD

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 Tests Are First-Class Code

My standards for TDD microtests are the same standards I have for shipping code, and I follow them in microtests for the same reason I follow them in shipping code: they make me faster. This geekery muse is comfort food, for me and maybe for you, but I want to keep stressing: I fully endorse and support my sibs out there on the street protesting this violent police uprising. Stay safe, stay strong, stay kind, stay angry. Black lives matter. …

TDD Tests Are First-Class Code Go to Post »

Microtest TDD is Gray-Box

Microtest TDD is a gray-box testing approach, neither entirely inside nor outside the code it tests. Let’s talk that over. Before we dive in: Black lives matter. Stay safe, stay strong, stay kind, stay angry. Let’s not just embrace change, let’s initiate it. Any step you take helps, provided only that it’s doable, it’s not definitely backwards, and it’s not the last step. In the ’70’s, an important movement developed in testing theory, called "black box" testing. The idea is …

Microtest TDD is Gray-Box Go to Post »

Turning Implicit into Explicit

Turning implicit understanding into explicit code is a great productivity & quality step. Let’s talk about some whys and hows for that idea. As we forge into the topic, please do remember, this is just comfort food, not the main story. I proudly support my friends & family who are working for change in the world, and encourage them to keep at it. Stay safe. Stay strong. Stay kind. Stay angry. Black lives matter. An implicit understanding is anything a …

Turning Implicit into Explicit Go to Post »

Model-View, The Desktop, and TDD

Today, a basic topic: Model/View, the Desktop and TDD. Some geeky respite, and enjoy. We got a lotta work waiting for us after this break. Stay safe. Stay strong. Stay kind. Stay angry. Black lives matter. Demand different. The basic idea behind all Model/View schemes, and there are several of them, is just this: draw a thick line between what your program does and how your program shows what it does. In other words, it’s a compositional heuristic, guidance for …

Model-View, The Desktop, and TDD Go to Post »

Microtest TDD: Economics

The economic aspects of microtest TDD are inextricably tied to the operational aspects of it. If we concentrate only on the artifacts involved, we will lose the picture and misunderstand the value proposition. As a professional geek, the heart of my job is changing rigidly structured imperative text in collaboration with other humans, in order to meet a variety of locally or temporally aligned goals. That’s fancy talk for "I change code, in community, for money." The central event is …

Microtest TDD: Economics Go to Post »

Microtest TDD: More Definition

What’s a microtest, anyway? I write a ton of tests as I’m building code, and the majority of these are a particular kind or style of test, the microtest kind. Let’s talk about what I mean by that, today, then we’ll talk later about how that turns out to help me so much. A microtest is a small, fast, precise, easy-to-invoke/read/write/debug chunk of code that exercises a single particular path through another chunk of code containing the branching logic from …

Microtest TDD: More Definition Go to Post »

Microtest TDD: The Big Picture

I think of my style of coding as "microtest TDD". That can be misleading for folks, so let’s take a walk over a few of the ideas, implicit and explicit, that make up the approach. First things first, bear the money premise in mind in all that follows, to wit: "I’m in this for the money." In the software trade, we make money by shipping more value faster. This is why I adopt these practices, because when I do them, …

Microtest TDD: The Big Picture Go to Post »

Scroll to Top