Skip to content

XP123

Exploring Extreme Programming

Menu

Primary menu

  • Home
  • Refactoring Workshop
  • Start Here
    • Comics
    • TDD: Test-Driven Development
    • Refactoring
    • User Stories
    • Dungeons & Patterns
  • Update
  • About
  • Contact

Tag Archives: XPlorations

And-Or Trees

Posted on September 10, 2024 by Bill Wake

Suppose you want to represent a finite set of possibilities in a compact way. An And-Or Tree can do this, and is useful in several situations. An And-Or Tree has leaf nodes and interior nodes. The leaf nodes contain some Continue reading And-Or Trees→

Posted in xp123.com | Tagged design, programmer, XPlorations

Run Tests Without an App — Step by Step with Xcode

Posted on August 1, 2024 by Bill Wake

I’m frustrated when unit tests run slowly. One way to speed them up in Xcode when developing using a simulator: isolate your model to a framework, and run your tests without a host application. Context: Developing a Swift-based app for Continue reading Run Tests Without an App — Step by Step with Xcode→

Posted in xp123.com | Tagged tdd, XPlorations

Swift Testing – A New Unit Testing Framework

Posted on July 5, 2024 by Bill Wake

Apple has introduced a new unit testing framework. It has a simpler syntax, much simpler assertions, parameterized testing, and more. Let’s take a look. You can find a bonus cheatsheet at the end of this article. Easier Syntax XCTest (the Continue reading Swift Testing – A New Unit Testing Framework→

Posted in xp123.com | Tagged programmer, tdd, XPlorations

TDD with a Function Pipeline

Posted on June 6, 2024 by Bill Wake

Our “geek” group tackled a problem a couple weeks ago, that one of us had heard suggested by Michael Feathers: given a sequence of numbers, tell how many non-zero runs it has. Ron Jeffries described a procedural implementation; we’ll look Continue reading TDD with a Function Pipeline→

Posted in xp123.com | Tagged design, programmer, refactoring, XPlorations

Trees – Confidence in Design

Posted on May 2, 2024 by Bill Wake

Test-Driven Development (TDD) depends on assembling well-tested parts into a trustworthy whole. Some design structures make this easier. Today, we’ll look at trees. A tree is a structure consisting of leaf and interior nodes. An interior node contains some number Continue reading Trees – Confidence in Design→

Posted in xp123.com | Tagged design, programmer, tdd, XPlorations

Pipelines – Confidence in Design

Posted on April 4, 2024 by Bill Wake

The other day, Kent Beck pointed out a skill that test-driven development (TDD) relies on but doesn’t give much guidance about: “behavioral composition”. This is the skill of dividing a big behavior in such a way that we trust the Continue reading Pipelines – Confidence in Design→

Posted in xp123.com | Tagged design, programmer, tdd, XPlorations

Threaded Code (and Composite)

Posted on March 7, 2024 by Bill Wake

Let’s look at the threaded code approach. It’s a less-well-known way to build an interpreter for a programming language. (The more common approach simulates each instruction.) Threaded code has a high-level analog, and some extra tricks when done in assembly Continue reading Threaded Code (and Composite)→

Posted in xp123.com | Tagged design, programmer, XPlorations

Time Troubles – Transitions

Posted on February 1, 2024 by Bill Wake

Time is a well-known source of trouble for programmers. We looked earlier at one type of time troubles: overflow. Today, I’d like to look at another time trouble: transitions. Here are the problems we’ll see: Simultaneous Transitions Different units of Continue reading Time Troubles – Transitions→

Posted in xp123.com | Tagged programmer, tester, XPlorations

Refactor: Inline-Adjust-Extract

Posted on January 4, 2024 by Bill Wake

Sometimes, we feel that something we extracted isn’t as good as it could be. The Inline-Adjust-Extract refactoring pattern can help fix that. It has three steps: In a sense, this pattern is the opposite of the Isolate-Improve-Inline pattern. That tactic Continue reading Refactor: Inline-Adjust-Extract→

Posted in xp123.com | Tagged programmer, refactoring, XPlorations

Organizing Fields and Methods

Posted on November 2, 2023 by Bill Wake

When you’re making a class, in what order do you put the fields and methods? We’ll look at several choices and some tradeoffs between them. Organizing Fields I’ve seen a few approaches to organizing fields: In C#, Swift, and some Continue reading Organizing Fields and Methods→

Posted in xp123.com | Tagged design, programmer, XPlorations

Post navigation

← Older posts

Primary Sidebar Widget Area

Stay Up-to-Date

If you'd like to hear when articles come out, sign up today!

|●  Become a Patron!

Recent Posts

  • And-Or Trees
  • Run Tests Without an App — Step by Step with Xcode
  • Swift Testing – A New Unit Testing Framework
  • TDD with a Function Pipeline
  • Trees – Confidence in Design
  • Pipelines – Confidence in Design
  • Threaded Code (and Composite)
  • Time Troubles – Transitions
  • Refactor: Inline-Adjust-Extract
  • Organizing Fields and Methods

Tags

agile analysis atdd author business charts classic coach computers conference cool customer design economics fiction games HCI history improv integration interesting intro Java job aids language lean learning metaphor music myth patterns planning programmer refactoring resources reviews scrum software spreadsheet stories tdd team tester training XPlorations

Archives

counter for wordpress
Copyright © 2025 XP123. All Rights Reserved.
Theme: Catch Box by Catch Themes
Scroll Up