---
title: "Ahmed Hassan (@ahassan) | Hashnode"
description: "Ahmed Hassan (@ahassan) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@ahassan"
---

@ahassan

# Ahmed Hassan

@ahassan · Joined October 2025

### [When NOT to use Object-Oriented Programming (OOP)](https://random-programming-insights.hashnode.dev/when-not-to-use-object-oriented-programming-oop?utm_source=hashnode&utm_medium=feed)

Consider alternatives to OOP for tasks without state needs. Use namespaces or static classes for simple transformations or side-effects

4 min read · [random-programming-insights.hashnode.dev](https://random-programming-insights.hashnode.dev/when-not-to-use-object-oriented-programming-oop?utm_source=hashnode&utm_medium=feed)

[Jan 7](https://hashnode.com/posts/when-not-to-use-object-oriented-programming-oop/695e39773e62059708e3f79b)

### [Treat Special cases explicitly but uniformly](https://random-programming-insights.hashnode.dev/treat-special-cases-explicitly-but-uniformly?utm_source=hashnode&utm_medium=feed)

Learn how to design a robust Range type by moving beyond nullable values and boolean flags.

7 min read · [random-programming-insights.hashnode.dev](https://random-programming-insights.hashnode.dev/treat-special-cases-explicitly-but-uniformly?utm_source=hashnode&utm_medium=feed)

[Dec 12, 2025](https://hashnode.com/posts/treat-special-cases-explicitly-but-uniformly/693bec2ed912ed5184e16d48)

### [Making Illegal States Unrepresentable: Type-Driven Domain Modeling](https://random-programming-insights.hashnode.dev/making-illegal-states-unrepresentable-type-driven-domain-modeling?utm_source=hashnode&utm_medium=feed)

Explore type-driven domain modeling to reduce runtime errors by making illegal states unrepresentable, ensuring compile-time safety and clearer code

6 min read · [random-programming-insights.hashnode.dev](https://random-programming-insights.hashnode.dev/making-illegal-states-unrepresentable-type-driven-domain-modeling?utm_source=hashnode&utm_medium=feed)

[Nov 22, 2025](https://hashnode.com/posts/making-illegal-states-unrepresentable-type-driven-domain-modeling/6921669621b567660b156713)

### [How Rust and C++ Standard Libraries Handle Return Values: Position vs. Reference](https://random-programming-insights.hashnode.dev/how-rust-and-cpp-standard-libraries-handle-return-values-position-vs-reference?utm_source=hashnode&utm_medium=feed)

How Rust and C++ Approach Binary Search

4 min read · [random-programming-insights.hashnode.dev](https://random-programming-insights.hashnode.dev/how-rust-and-cpp-standard-libraries-handle-return-values-position-vs-reference?utm_source=hashnode&utm_medium=feed)

[Nov 9, 2025](https://hashnode.com/posts/how-rust-and-cpp-standard-libraries-handle-return-values-position-vs-reference/6910670d96498fae6d353514)
