Redowan's Reflections — Page 9
Recent writing
Longer articles, short notes, and things I'll probably need to look up again.
Browse the archiveHost Google Fonts locally in Hugo without CDN dependency. Download woff2 files, configure CSS, and improve performance while maintaining GDPR compliance.
Compare three Go option patterns: exposed structs, option constructors, and functional options. Learn when to use each for clean APIs.
Build a working round-robin load balancer in Go with goroutines and the standard library. No dependencies needed for this educational prototype.
Control goroutine concurrency with buffered channels as semaphores. Prevent resource exhaustion with backpressure patterns in Go workers.
Build 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.