A software engineer working on an embedded IoT data pipeline identified architectural code smells—over-abstraction through excessive use of Rust traits and decorators that obscured object identity and created systems of many similar objects. Using the Design Patterns book, they diagnosed the issues and proposed the Mediator pattern as a solution to centralize data transformation and reduce interconnections between modules.
A discussion on whether AI's ability to rapidly generate boilerplate code makes previously impractical architectural patterns like Domain-Driven Design and Clean Architecture more viable, and whether structured codebases could better constrain AI-generated code.
Gary Bernhardt's Functional Core/Imperative Shell architecture separates code into pure business logic and stateful I/O handling. The article extends this concept to Deterministic Core/Non-Deterministic Shell, arguing that determinism rather than pure functionality is key to testability, and that non-deterministic operations like RNG, networking, and database calls should be isolated in the shell layer.
Article explaining design patterns for aligning icons with text labels in lists. Demonstrates two approaches: using HTML elements with flexbox and CSS transforms using the lh unit, and using pseudo-elements with background images. Shows how to maintain proper alignment when text wraps or when font size and icon size change.