Posts tagged with code quality

Join 9,500+ smart developers

Every month I share what I learn from running Spatie, building Oh Dear, and maintaining 300+ open source packages. Practical takes on Laravel, PHP, and AI that you can actually use.

No spam. Unsubscribe anytime. You can also follow me on X.

Benefits of writing clean, maintainable code.

jump24.co.uk - submitted by jamie peters

We all strive to write good code when we jump onto a project but sometimes do you wonder why?

The post covers

  • Why you should write clean code
  • Techniques for writing cleaner code

The techniques here are useful for all level of developers and worth a quick skim over as we all nothing wrong with a quick refresher

Read more [jump24.co.uk]

Best Practices for Using PHP Enumerations

jeffochoa.me - submitted by Jeff

Although PHP Enumerations are meant to provide an easy and elegant solution to work with a predefined set of values, these classes are often misused, resulting in a lack of consistency due to the introduction of all sorts of methods that increase their complexity. In this article, we are going to go through some practices (both good and bad) with the goal of clarifying the understanding of these types of objects to help you build a more resilient and consistent codebase.

Read more [jeffochoa.me]