-

Chiron Codex: helping software engineers become centaurs. -

-
Blog
-
Podcast
-
Consulting
Category Archives: Design & Architecture
Let’s talk about self-documenting code
You think your code is self-documenting. That it doesn’t need comments or Doxygen or little diagrams, because it’s clear from the code what it does. I do not think that that is true. Even if your reader has at least … Continue reading
Posted in Design & Architecture
8 Comments
Rethinking Object-Oriented Design figures
My iPad-drawn graphics in Rethinking OOD at App Builders 2018 were not very good, so here are the ink-and-paper versions. Please have them to hand when viewing the talk (which is the first of a two-parter, though I haven’t pitched … Continue reading
Inheritance still doesn’t make any sense
Some ideas based on feedback to the Why inheritance never made any sense: Feedback: Subtypes are necessary The only one of these that is practically workable is behaviour inheritance <=> subtype inheritance: I’m sorry that you were exposed to Java … Continue reading
Posted in Design & Architecture
Leave a comment
Why inheritance never made any sense
There are three different types of inheritance going on. Ontological inheritance is about specialisation: this thing is a specific variety of that thing (a football is a sphere and it has this radius) Abstract data type inheritance is about substitution: … Continue reading
In defense of `id`
Something you can’t see about my dotSwift talk on OOP in FP in Swift is that to make the conference more interesting while the AV was set up for the next speaker, Daniel Steinberg invited me over to a side … Continue reading
Posted in Design & Architecture
Leave a comment
On Inheritance
I recently had the chance to give my OOP-in-FP-in-Swift talk again in NSLondon, and was asked how to build inheritance in that object system. It’s a great question, I gave what I hope was a good answer, and it’s worth … Continue reading
It’s about the thinking
At some point in the past, programmers used to recommend drawing flowcharts before you start coding. Then they recommended creating CRC cards, or acting through how the turtle will behave, or writing failing tests, or getting the types to match … Continue reading
machoo – Object-Oriented Programming in Object-Oriented Programming in the GNU HURD
For the last few weeks, my when-I-get-to-it project has been machoo, which is sort of an object-oriented system on the HURD but mostly an excuse to learn about how Mach messaging works. I decided to build a Smalltalk-style “give me … Continue reading
Head of Architecture
My current job title is Head of Architecture, though the word “architecture” means different things to different people in the world of software. So what does it mean to me, what do I do when I’m playing Head of Architecture? … Continue reading
Posted in Design & Architecture
3 Comments
An unhelpful distinction
Object-Oriented Programming is quite simple: it’s just choosing what function to run based on the parameters to the function (whether through method sending like Smalltalk, polymorphic lookup like CLOS, or table searching like C++: usually pattern-matching like Haskell would be … Continue reading
Posted in Design & Architecture
Leave a comment