Black Friday Deals For Authors Are On Now!

Leanpub Header

Skip to main content

Data Structures Explainer + Completing Object Orientation

Bought separately

$58.00

$43.50

You pay

Author earns

$

Also available for 2 book credits with a Reader Membership

The following 2 books are included in this bundle...

These books have a total suggested price of $58.00. Get them now for only $43.50!
About

About

About the Bundle

Books

About the Books

The Data Structures & Algorithms Explainer

The Data Structures & Algorithms Explainer

From Beginner to Mastery

Early in my career I was handed a data structures textbook that became the one book on the subject I took seriously. It prepared me for my technical interviews. The notes I kept then, together with what I later learned from Project Euler, YouTube, and other ad hoc sources, grew into this book.

One idea holds the book together: a program gets long when the steps have to hunt for the data. It stays short when the data already sits where the steps expect it. So there are two jobs: decide how the data sits in memory, then write the steps that use it.

The sessions start with the basic ideas and then walk through stacks, queues, trees, heaps, graphs, shortest paths, linked lists, searching, binary search trees, and hash tables, so you can go from a first look at the subject to the algorithms that take more practice. Each session starts from a drawing, walks it with real numbers, and ends with a check you can do on paper. Every step is written first in pseudocode notation and then in Python, with comments that map one to the other. The math is written in words and in LaTeX, and newspaper-strip cartoons sit beside the diagrams.

Completing Object Orientation

Completing Object Orientation

From MVC to DCI

Most teams learned "MVC" from a web framework. The original idea, developed at Xerox PARC, was more precise: a way to keep a mental model of the system's data in view. What a system does—the collaborations people actually pay for—often landed in a fat model, a fat controller, or a service object that hid the work. The next use case became harder to read than the last.

Completing Object Orientation is a working path into Data, Context, and Interaction. MVC still describes what the system is. DCI gives a readable home to what it does: roles inside a context, so a use case can be read from top to bottom. If a context makes the use case clearer, use it. If a plain function is clearer today, ship the function.

The book starts at PARC MVC and at roles in OOram, then walks the MVC family and neighboring architectures, leaving your existing shells in place. Money Transfer is the running example. In TypeScript and Ruby on Rails, the transfer is built end to end, three further use cases follow the same recipe, and a fat Rails model moves into a context. Rich Hickey's critique of object orientation is taken seriously and fairly. The same habit is then carried into AI agents: a model can choose inside a role, while the context keeps the order, the limits, and the money.

The test throughout is habitability: can a teammate find the use case in one place, and see how the system will work?

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub