Hasty Briefsbeta

Abstractions, Future-Proofing, and a Reasonable Amount of Effort

10 days ago
  • #PHP
  • #Framework Design
  • #Tempest
  • The author explores Tempest, a new PHP framework designed for modern PHP features like type hinting and property accessors.
  • Tempest's approach to discovery closely aligns with the author's work on Smolblog's framework, reducing manual configuration.
  • The author encountered a speed bump when integrating Smolblog's core domain model with Tempest, particularly around PSR-11 compatibility.
  • Tempest does not implement PSR-11, leading to a discussion on framework interoperability and design decisions.
  • Brent, Tempest's lead developer, argues against PSR standards, citing mismatches with Tempest's design and the framework-specific nature of many implementations.
  • The author values framework independence for Smolblog, influenced by past experiences with WordPress and the desire for content ownership.
  • Dependency injection and interfaces are emphasized as key to maintaining reusable and adaptable code.
  • The author acknowledges the practicality of tightly coupled code for rapid development but advocates for flexibility where long-term growth is anticipated.