---
title: "Mohammad Almechkor (@medalmechkor) | Hashnode"
description: "I write the spec before the code and let the compiler catch the rest. Read the latest articles by Mohammad Almechkor on Hashnode."
url: "https://hashnode.com/@medalmechkor"
---

@medalmechkor

# Mohammad Almechkor

@medalmechkor · Paris, France · Joined March 2026

I write the spec before the code and let the compiler catch the rest.

### [Stop Throwing, Start Returning: Why TypeScript Needs the Result Pattern](https://hex-di.hashnode.dev/stop-throwing-start-returning-why-typescript-needs-the-result-pattern?utm_source=hashnode&utm_medium=feed)

TypeScript's try-catch gives you unknown errors, invisible failure modes, and silent bugs. The Result pattern makes errors typed, visible, and impossible to forget. Here's why you should stop throwing and start returning.

10 min read · [hex-di.hashnode.dev](https://hex-di.hashnode.dev/stop-throwing-start-returning-why-typescript-needs-the-result-pattern?utm_source=hashnode&utm_medium=feed)

[Mar 7](https://hashnode.com/posts/stop-throwing-start-returning-why-typescript-needs-the-result-pattern/69ac520f86766ac3a6d228b8)
