I've moved to Substack馃憢 Hello, I am happy you found or stumbled upon my site, I actively post on AlteredCraftNov 28, 2025 路 1 min readsamkeen.dev
Taming Error Flow with Result Objects in PythonError handling is a critical aspect of software development, yet it's often overlooked or implemented in ways that can lead to confusing and hard-to-maintain code. This article explores the limitations of traditional exception-based error handling an...Nov 12, 2024 路 10 min readsamkeen.dev
Python Protocols: Combining Duck Typing with Type Hints for Better CodingPython's dynamic nature and support for duck typing have long been praised for their flexibility. However, as codebases grow larger and more complex, the benefits of static type checking become increasingly clear. But how can we reconcile the flexibi...Aug 3, 2024 路 4 min readsamkeen.dev
Understanding Enums in Rust: A Beginner's GuideIf you're new to Rust, you might have encountered enums and wondered what they're all about. In this post, we'll explore Rust enums, their uses, and how they can make your code more expressive and safer. We'll cover basic enums, enums with associated...Jul 5, 2024 路 8 min readsamkeen.dev
Enhancing RAG Systems with Rerankers: A Practical GuideIn the rapidly evolving field of AI, Retrieval-Augmented Generation (RAG) has emerged as a powerful technique for enhancing the capabilities of large language models. This post will guide you through the process of improving RAG systems using reranke...1PJun 25, 2024 路 12 min readsamkeen.dev