Tagged Singletons
Explains tagged singletons in dependency injection, allowing multiple singleton instances of the same class distinguished by tags for different contexts.
Brent — Curator of Stitcher’s Community Feed, a community-driven, hand-curated content aggregator highlighting thoughtful, high-quality writing from across the web. The feed focuses on software engineering, open source, web development, infrastructure, and the human side of building technology. Readers can browse recent picks, follow via RSS, or contribute their own suggestions.
243 articles from this blog
Explains tagged singletons in dependency injection, allowing multiple singleton instances of the same class distinguished by tags for different contexts.
A look at the exciting developments in PHP for 2024, including the PHP Foundation's work, the FrankenPHP app server, and Laravel's growth.
A developer explores efficient testing strategies for 109+ regex-based code highlighting patterns, moving from individual tests to data-driven approaches.
A technical guide on implementing a custom language syntax highlighter using patterns and injections in the tempest/highlight library.
A developer's journey to find a better syntax highlighter for code blocks, moving away from manual tagging and outdated tools.
The author introduces Tempest, a new, minimal PHP framework designed for small projects, and shares a personal health update affecting his work.
A reflection on the joy of personal programming projects and a reminder to pursue coding for passion, not just work.
A reflection on the unnecessary rivalry between Symfony and Laravel developers, questioning why developers feel the need to strongly identify with one framework.
Overview of new features in PHP 8.3, including readonly class amendments, typed constants, the #[Override] attribute, and json_validate().
Introducing RFC Vote, an open-source platform for the PHP community to vote and discuss RFCs with argument-based voting.
Discusses the debate around interface default methods in PHP, contrasting 'Is A' vs 'Acts As' relationships in object-oriented design.
Explains the new #[Override] attribute in PHP 8.3, its purpose for preventing bugs, and includes commentary on static analysis in PHP.
A developer reflects on over-engineering a CRUD controller, learning that clever abstractions can create unmaintainable code.
A tutorial on creating a procedurally generated 2D game map using PHP, covering noise generation and rendering with CSS grid.
A critique of the 'considered harmful' mindset in programming, using a popular Laravel critique as a starting point to discuss self-reflection and best practices.
An analysis of PHP's evolution through 'design by committee,' comparing its development process to the awkward but functional camel.
Explains PHP 8.3's new feature allowing readonly properties to be reinitialized during object cloning, specifically within the __clone method.
A developer advocates for using light color schemes in coding environments, citing readability, UI consistency, and eye health.
A developer explains their practice of 'code folding' to improve readability and focus by collapsing method bodies and using keyboard shortcuts.