Christopher Okhravi (@chrokh) 's Twitter Profile
Christopher Okhravi

@chrokh

Get my book! theobjectorientedway.com
University Lecturer & YouTuber

ID: 118402818

linkhttps://youtube.com/c/christopherokhravi calendar_today28-02-2010 15:35:18

2,2K Tweet

2,2K Followers

432 Following

Christopher Okhravi (@chrokh) 's Twitter Profile Photo

Just like null doesn't magically give us a value, an unchecked exception doesn't magically make our code safe. It just makes our failures harder to predict and debug.

Leanpub (@leanpub) 's Twitter Profile Photo

The Object Oriented Way by Christopher Okhravi (PhD) is the featured book on the Leanpub homepage! #ComputerProgramming #books #ebooks #programming Christopher Okhravi Have you ever wondered why there are so many rules in object oriented programming? I asked myself that question a decade

The Object Oriented Way by Christopher Okhravi (PhD) is the featured book on the Leanpub homepage! #ComputerProgramming #books #ebooks #programming <a href="/chrokh/">Christopher Okhravi</a>

Have you ever wondered why there are so many rules in object oriented programming?
I asked myself that question a decade
Christopher Okhravi (@chrokh) 's Twitter Profile Photo

When possible, we should pick interfaces because they are more flexible. A class can only inherit from *one* class but can implement *many* interfaces. So here's the rule of thumb: > Use interfaces unless you need state.

Christopher Okhravi (@chrokh) 's Twitter Profile Photo

When coupling to abstractions rather than concretions, all instantiation either happens in the main entry point of the application or in factories. And that's the key reason why we have the factory method pattern.

Christopher Okhravi (@chrokh) 's Twitter Profile Photo

My book only covers 8 design patterns. Because patterns are a lens, not a catalog. Understand the core mechanics, and you’ll understand the rest. Strategy, Bridge, Composite, Decorator, Iterator, Factory Method, Observer, Visitor. ☀️ theobjectorientedway.com

Christopher Okhravi (@chrokh) 's Twitter Profile Photo

Make good bad decisions. Quickly. Ones that you can recover from. In software, choose abstractions that are easy to change. In life, make choices that won’t kill someone or their sanity. In business, make choices that maximise learning.

Christopher Okhravi (@chrokh) 's Twitter Profile Photo

In life, we tend to overthink. We research, analyze, compare, and stall — all to avoid failure. But most of the time, we’d be better off making the wrong decision faster. Momentum matters.

Christopher Okhravi (@chrokh) 's Twitter Profile Photo

Failing fast doesn’t mean being reckless. It means surfacing errors early, getting feedback quickly, and moving forward with clarity.

Christopher Okhravi (@chrokh) 's Twitter Profile Photo

Strategy is a concretion composed with an abstraction. Bridge is a concretion composed with an abstraction… that’s composed with another abstraction. In other words: Bridge is what happens when you nest Strategy.

Leanpub (@leanpub) 's Twitter Profile Photo

The Object Oriented Way by Christopher Okhravi (PhD) Christopher Okhravi is the featured book on the Leanpub homepage! #ComputerProgramming About the Book Have you ever wondered why there are so many rules in object oriented programming? I asked myself that question a decade ago. This book

The Object Oriented Way by Christopher Okhravi (PhD) <a href="/chrokh/">Christopher Okhravi</a> is the featured book on the Leanpub homepage! #ComputerProgramming

About the Book

Have you ever wondered why there are so many rules in object oriented programming?
I asked myself that question a decade ago. This book