Redowan's Reflections — Page 9
Recent writing
Longer articles, short notes, and things I'll probably need to look up again.
Browse the archiveBuild a TOTP-based 2FA client in Go using the standard library. Generate time-based one-time passwords like Google Authenticator.
Use compile-time interface guards to verify type conformity in Go without runtime overhead. Learn the var _ Interface = (*Type)(nil) pattern.
Why writing about common topics matters for personal growth, even when countless others have covered the same ground before you.
Master Go 1.21's log/slog package for structured logging with levels, JSON output, and attribute grouping. No third-party libraries needed.
Practical advice for navigating exit interviews from an employee's perspective, minimizing risk while maintaining professionalism.
Replace complex nested conditionals with Python's enum.Flag and bitmasks for cleaner, more maintainable logic using bitwise operations.
Share data via DNS TXT records using dig and base64 encoding. Learn limitations, security concerns, and practical use cases for DNS tunneling.
Prevent memory leaks in Python descriptors by using weakref to avoid hard references that prevent garbage collection of validated objects.
Build Unix-style command pipelines in Python using subprocess.run with stdout piping for efficient process chaining and output capture.
Create reusable generators by implementing __iter__ in a class, allowing multiple lazy iterations without memory overhead or repeated function calls.
A reflection on choosing the MacBook Air M2 15-inch for portability without sacrificing screen size and development capabilities.
Replace inheritance-based template pattern with composition and Protocol types to create cleaner, testable Python code without namespace pollution.
Modern Python dependency management using pip-tools, hatch, and PEP-621 for web apps and libraries with reproducible builds.
Build a traceroute clone in Python using UDP and ICMP sockets to trace network packet routes and measure hop latency with TTL manipulation.
Learn how to programmatically request Google search indexing for multiple URLs using the Indexing API and NodeJS for faster reindexing.