Laravel view models vs. view composers
Explains the difference between Laravel view models and view composers, advocating for view models for better code maintainability in large projects.
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.
239 articles from this blog
Explains the difference between Laravel view models and view composers, advocating for view models for better code maintainability in large projects.
A guide to structuring large Laravel codebases by domain or module, grouping related business logic like contracts and invoicing for better organization.
Explains Laravel view models as a pattern to separate data transformation from controllers and models, improving code structure and maintainability.
A guide to using MySQL views in Laravel with Eloquent models, covering benefits, performance considerations, and a practical implementation example.
A speculative look at the future evolution of the web, based on its history from 1991 to modern JavaScript frameworks.
A Laravel developer critiques the service locator pattern, explaining its drawbacks like runtime errors and increased cognitive load in software design.
Explores how developers visually perceive code and offers six practical tips to improve readability, including fonts, colors, and naming.
Analyzes Microsoft's acquisition of GitHub, discussing its potential impact on competition, innovation, and the tech industry's future.
An exploration of the Liskov Substitution Principle (LSP) and its critical role in ensuring type safety in object-oriented programming and inheritance.
A beginner-friendly explanation of dependency injection using a car analogy, contrasting it with inheritance and promoting composition.
A developer shares solutions for PHPStorm performance issues on macOS, focusing on font rendering and JRE problems.
A PHP developer explores the impact of adding strong types, generics, and other type system improvements to the language.
A collection of advanced, lesser-known features and productivity tips for experienced PHPStorm users to optimize their workflow.
A guide to implementing responsive images for web performance, covering mindset, techniques, and calculations for optimal image delivery.
How to view detailed MySQL foreign key constraint error messages using the SHOW ENGINE INNODB STATUS command.
A technical guide on enabling and locating MySQL query logs for debugging and monitoring database activity.
A blog post discussing the impact of curly bracket placement on code readability, developer focus, and cognitive load in software development.
Fixing a MySQL JSON import error by converting binary character set strings to utf8mb4 using a regex find-and-replace.
Introducing spatie/async, a PHP package for asynchronous parallel processing, with benchmarks comparing it to Amp and ReactPHP.
Explains performance issues with standard UUIDs in MySQL and presents an optimized solution using binary storage and bit-shifting.