Jump to ratings and reviews
Rate this book

Messaging as a Programming Model

Rate this book
OOP as if you meant it

Learn how messaging makes your object-oriented code easier to read and maintain.

Have you ever heard, objects are communicating by messages? I had heard this a long time ago - and never have been able to make sense of it. But why bother? Just calling functions on objects gets the job done, doesn't it. That's how I programmed until a couple of years ago, at least. However my dismay was growing every day. I found it hard to derive classes/objects from requirements. And despite all my best OO-intentions peppered with Clean Code principles my code was hard to read.

So I started to think about whether this was all my fault, and how to try harder to become a good OO-programmer. But then I This wasn't just my problem. Almost every developer I met suffered from the same symptoms. So maybe the true cause of this wasn't our collective dumbness. Maybe the true cause lay in the paradigm.

And that's what I'm believing today. Mainstream object-orientation is more of a problem than a solution, because it's lacking an essential, no, the essential aspect of object-orientation how its inventor Alan Kay meant it to be. This essential aspect is messaging. Yes, the way of how objects are communicating makes a big difference. And glossing this over by just saying "it's like calling a function" has done great harm.

In this little book I´m trying to show you what I think, messaging means and how object-orientation was intended to be.

I'd be happy if you gave messaging a second chance. I'm sure you'll reap benefits from putting it back into the center of your object-oriented programming practice. Your code will become easier to write, read, and change, since it will more closely resemble the requirements and your solution strategy.

58 pages, Kindle Edition

First published November 20, 2013

4 people want to read

About the author

Ralf Westphal

12 books1 follower

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
1 (14%)
4 stars
3 (42%)
3 stars
1 (14%)
2 stars
1 (14%)
1 star
1 (14%)
No one has reviewed this book yet.

Can't find what you're looking for?

Get help and learn more about the design.