Change ringing: extensions to place notation
I’ve experimented with method design at various times and place notation is a very useful tool, but it’s lacking in some situations. Here’s a few ideas for some bolt-ons.
I’ve experimented with method design at various times and place notation is a very useful tool, but it’s lacking in some situations. Here’s a few ideas for some bolt-ons.
In which your hopeful protagonist describes Million Point Sculptures, and a highly interactive exploration tool written in Metal.
In the 1980s there was a wave of fascination with fractals and chaos in popular culture, and several books really caught the imagination of young me.
One was Chaos by James Gleick (un classique)1. Also there were some lovely books by Clifford Pickover, like Computers and the Imagination, containing curious things like Million Point Sculptures: intriguing generated art showing wispy smoke-clouds. They’re generated by some quite simple equations.
This helper is installable with SPM, see GitHub repo
I’ve been using the Swift Testing
framework more. Despite my
previous grumble I do like the arguments:
feature of the @Test
macro and how much it can clean up tests:
@Test(arguments: [
(true, "bob", 38),
(false, "sue", 45)
])
func testUserPermissions(isBasketEmpty: Bool, username: String, age: Int) {
#expect( ... )
}
The ability to supply a list of parameter variants to test is very useful. I think it tends to result in more exhaustive tests because of ease of use.
But being able to easily whack in a list of argument variants soon reveals a slight annoyance. It’s not unusual to end up with a test like this: