8

Gossiping Bus Drivers

So far in this comparative analysis we haven’t found a strong reason to prefer functional programming over OO programming. So let’s examine a slightly more interesting problem.

Object orientation was born in 1966 when Ole-Johan Dahl and Kristen Nygaard added some modifications to the ALGOL-60 language in order to make the language more amenable to discrete event simulation.1 The new language was called SIMULA-67 and is considered to be the first true OO programming language.

1. Legend has it that they were simulating Norwegian ocean shipping.

So let’s do a comparative analysis of a simple discrete event simulator. That ...

Get Functional Design: Principles, Patterns, and Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.