Discussion about this post

User's avatar
Hamza's avatar

Interested in your thoughts on using `extend self` over `module_function`

Expand full comment
Meme's avatar

If I may first ask about something off topic, I found a PDF of Yourdon's 1978 Structured Programming book and searched it for "unit test" and I found four instances of the phrase but no description of what he wanted it to mean to his readers. Do you have any idea of what a unit test was at that time? I think that in the 80s I had a college class that used that book and I have no idea.

Returning to the topic, I think there is an OO programming heuristic that simply says "add another class". I thought came from Reil's OO Design Heuristics book but I can't find it. Many design patterns rely on the addition of new classes so, it isn't wrong but, is it in the general case? When I long ago mentioned the heuristic to a popular Java architect, he objected, "You can't just say that". I asked that if after he assisted a programmer with his code were there more or fewer classes in the resulting code and to his dismay, his answer agreed with the heuristic. Do you see any value in the heuristic?

This article reminds me that Alan Kay wished he had called it Message Oriented Programming.

Expand full comment
6 more comments...

No posts