samkeen.devI've moved to Substack馃憢 Hello, I am happy you found or stumbled upon my site, I actively post on AlteredCraftNov 28, 2025路1 min read
samkeen.devTaming 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 read
samkeen.devPython 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 read
samkeen.devUnderstanding 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 read
samkeen.devEnhancing 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...Jun 25, 2024路12 min read