Technical writing

Written from production, not from documentation

Ten subjects, from software architecture to security engineering. Nothing here is written about a technology that has not been implemented and maintained.

AI & Machine Learning16 min read

Designing an LLM Gateway: One Internal API in Front of Every Model

A minimal LLM gateway built as a policy enforcement point: a neutral request model, tenant keys, budgets that hold under concurrency, adapters for two real SDKs, redacted logs and a usage ledger, with the gateway/application line drawn explicitly.

AI & Machine Learning14 min read

The Agent Loop Is Forty Lines. The Guards Around It Are the Engineering

A framework-free agent loop in Python, written as a state machine with five explicit exits: validated tool calls, errors returned as observations, step, token and time budgets, and stall detection, all tested with a scripted model and the real SDK.

Software Architecture3 min read

Platform Engineering vs DevOps: Architectural Roles and Organizational Impact

Platform engineering and DevOps are often conflated, but their architectural boundaries and organizational effects are distinct. This article clarifies the difference, focusing on how system design shapes team responsibilities and developer experience.

Software Architecture3 min read

Zero Trust Architecture: A Practical Path for Enterprise Systems

Zero trust architecture is more than a network policy. This guide grounds the principles in real system components and shows how to retrofit complex enterprise systems incrementally, without breaking operations.

Software Architecture4 min read

Temporal Architecture Patterns: Managing Time and Consistency in Modern Systems

Distributed systems must manage time, retries, and consistency across unreliable networks. This article explains temporal architecture patterns, their failure modes, and how to choose between event-based and workflow-based models for robust, compliant platforms.

Physics3 min read

Computational Physics in Medicine: What Actually Delivers

Not every computational physics advance is ready for clinical use. This article distinguishes proven, production-ready methods from research-stage techniques in medical software and devices.

Physics3 min read

How to Read Modern Physics Papers When AI Is Everywhere

AI is now woven into nearly every new physics paper, making it harder to separate genuine insight from technical noise. This guide offers a practical approach to reading, evaluating, and extracting value from AI-heavy physics research.

Enterprise Engineering4 min read

Distributed Tracing in 2024: Pitfalls Nobody Warns You About

Distributed tracing is essential for debugging large systems, but real-world adoption exposes subtle and costly pitfalls. This article covers operational anti-patterns and traps that undermine tracing at scale.

Client Advisory20 min read

Designing Software for Long-Term Maintenance

How to design software systems that remain maintainable for years—not just functional at launch. Principles for sustainable architecture that serves organizations long after the original team moves on.

Client Advisory14 min read

When Custom Software Is the Wrong Choice

An honest assessment of when building custom software creates more problems than it solves—and when off-the-shelf solutions, SaaS products, or simpler approaches are better choices.

AI & Machine Learning24 min read

Learning AI: A Realistic Path for Working Engineers

A non-hyped roadmap for engineers learning AI—what foundations matter, when to ignore trends, when AI is wrong, and how to build lasting skills without tutorial hell.

AI & Machine Learning18 min read

How to Study Hands-On Machine Learning Effectively

A structured approach to studying Aurélien Géron's Hands-On Machine Learning—which chapters matter most, common mistakes learners make, and how to actually retain what you learn.

AI & Machine Learning20 min read

Deep Learning (Goodfellow et al.): A Critical Review

A practitioner's critical analysis of the canonical Deep Learning textbook—what it does well, where it falls short, and what working engineers should know before reading it.

AI & Machine Learning28 min read

Large Language Model Architecture: How LLMs Actually Work

A technical deep dive into LLM architecture: tokenization, embeddings, transformer blocks, attention mechanisms, and why these systems behave the way they do—including hallucinations and limitations.

Payment Integrations20 min read

Square Payment Integration for Web Applications

Comprehensive Square Web Payments SDK integration covering card tokenization, Apple Pay, Google Pay, ACH payments, and omnichannel payment strategies for retail and e-commerce.

Payment Integrations26 min read

Paymob Payment Integration for Egypt and MENA Markets

Production-ready Paymob Accept API integration for Egypt and MENA markets. Covers iframe tokenization, mobile wallets (Vodafone Cash, Orange Money), webhook security, and Arabic localization patterns.

Payment Integrations24 min read

HyperPay Payment Integration for Saudi Arabia and GCC

Production-ready HyperPay integration for Saudi and GCC e-commerce. Covers mada card processing, STC Pay, Apple Pay, Copy and Pay forms, and SAMA compliance requirements.

Frontend Engineering17 min read

React Performance Optimization at Scale

Optimize React performance with useMemo, useCallback, and code splitting. Real performance metrics and patterns from large-scale production applications.

Khalid Aboubakr Engineering Desk

Latest engineering analysis

All desk analysis

6 min read

zod-msg-tools 0.1.4: npm malware hides an auth-bypassing SQL backdoor

A fake Zod helper on npm patches Node's HTTP server at runtime and adds a hidden endpoint that sits in front of your router and auth, runs queries on your database pools and, where the psql client is present, can reach OS command execution on Postgres deployments.