Category Archives: Design & Architecture

Object-oriented design, modularity, patterns, models and UML.

Reversing the polarity of the message flow

On receiving a message with a parameter, sometimes an object just reverses the sense of what just happened and sends another message to the parameter object with itself as the parameter of this message. That’s a pretty hard sentence to … Continue reading →

Posted in Design & Architecture | Comments Off on Reversing the polarity of the message flow

The Humpty-Dumpty Guide to OOP

Everybody knows that the best way to sound intellectual and demonstrate the superiority of your approach to that thing you do is to wrap it in a fancy-schmancy noun term. This works particularly well with a term that can be … Continue reading →

Posted in Design & Architecture | Leave a comment

More on Layers

I was told yesterday that entity-relationship diagrams can be OK as high level descriptions of database schemata, but are not appropriate for designing a database. Enough information is missing that they are not able to model the problem. Could the … Continue reading →

Posted in Design & Architecture | Leave a comment

The trouble with layers

In describing Inside-Out Apps I expressed my distrust of the “everything is MVC” school of design. […]when you get overly attached to MVC, then you look at every class you create and ask the question “is this a model, a … Continue reading →

Posted in Design & Architecture | Comments Off on The trouble with layers

Contractually-obligated testing

About a billion years ago, Bertrand Meyer (he of Open-Closed Principle fame) introduced a programming language called Eiffel. It had a feature called Design by Contract, that let you define constraints that your program had to adhere to in execution. … Continue reading →

Posted in Design & Architecture | 1 Comment

Things I believe

The task of producing software is one of choosing and creating constraints, rules and abstractions inside a system which provides very few a priori. Typically we select a large collection of pre-existing constraints, rules and abstractions upon which to base … Continue reading →

Posted in Design & Architecture | Leave a comment

On too much and too little

In the following text, remember that words like me or I are to be construed in the broadest possible terms. It’s easy to be comfortable with my current level of knowledge. Or perhaps it’s not the value, but the derivative … Continue reading →

Posted in Design & Architecture | Leave a comment

Inside-Out Apps

This article is based on a talk I gave at mdevcon 2014. The talk also included a specific example to demonstrate the approach, but was otherwise a presentation of the following argument. You probably read this blog because you write … Continue reading →

Posted in Design & Architecture | Tagged | Comments Off on Inside-Out Apps

Messily Veneered C

A recap: we saw that Model-View-Controller started life as Thing-Model-View-Editor, a way of approaching problems to design Smalltalk user interfaces. As Smalltalk-80 drifted off from its ivory tower, many Smalltalkers were using and talking about MVC, although any kind of … Continue reading →

Posted in Design & Architecture | Comments Off on Messily Veneered C

The Objective-C protocol naming trifecta

Objective-C protocol names throughout history seem to fall into three distinct conventions: some are named after what a conforming object provides. Thus we have DBProperties, DBEntities, DBTypes and the like in Database Kit. others are named after what the object … Continue reading →

Posted in Design & Architecture | Comments Off on The Objective-C protocol naming trifecta