Author, YouTuber (150k subs), University Lecturer

Joined February 2010
252 Photos and videos
📖 Just applied for a stipend for my book: The Object Oriented Way. Wish me luck! 🍀😊 theobjectorientedway.com

1
3
267
My silly face is now included in AI answers 😊
7
485
My thoughts are with the family and friends of Charlie Kirk. Open debate matters.
3
308
Christopher Okhravi retweeted
I owe a lot to resources like this channel for the 👇 youtube.com/@ChristopherOkhr… and to people like @chrokh @aarondfrancis @jeffrey_way @PovilasKorop who make these ideas accessible.
1
1
3
263
Christopher Okhravi retweeted
21 Jul 2025
The Object Oriented Way by Christopher Okhravi (PhD) @chrokh 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 is the result of everything I’ve learned since. I'm Christopher Okhravi (PhD), a Senior Lecturer at Uppsala University and a YouTuber with over 150,000 followers. I’ve spent the last ten years decoding OOP — so you don’t have to. This is a practical, language-agnostic guide to OOP. It gives you mental models to reason about complexity and choose the right abstraction at the right time. I use it in my own teaching. Now, it can be yours. Find it on Leanpub!
2
1
1
406
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.
2
319
Failing fast doesn’t mean being reckless. It means surfacing errors early, getting feedback quickly, and moving forward with clarity.
1
6
411
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.
4
255
Every hour you spend trying to avoid failure is an hour you’re not learning, not iterating, not shipping, not living.
6
289
A bad decision teaches you more than no decision ever will — as long as it’s reversible.
8
300
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.
1
8
227
Fail fast. Learn fast. Ship fast. In code, life, and business.
5
225
Value and pivotability, not premature perfection.
4
205
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

1
2
13
526
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.
1
1
9
381
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.
1
2
7
501
Christopher Okhravi retweeted
8 Jun 2025
The Object Oriented Way by Christopher Okhravi (PhD) is the featured book on the Leanpub homepage! #ComputerProgramming #books #ebooks #programming @chrokh Have you ever wondered why there are so many rules in object oriented programming? I asked myself that question a decade ago. This book is the result of everything I’ve learned since. Find it on Leanpub!
1
1
1
319
Static methods are neither object oriented nor functional. They are procedural.
1
1
22
513
More stuff like this in my book: 👉 theobjectorientedway.com

2
143
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.
10
379