Posts tagged with refactor

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]

Join 9,500+ smart developers

Get my monthly newsletter with 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.

"Freek publishes a super resourceful and practical newsletter. A must for anyone in the Laravel space"

Joey Kudish — Shipping with AI as a teammate

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

Avoid using else original

by Freek Van der Herten – 1 minute read

Using else often encourages complexer code structure, makes code less readable. In most cases you can refactor it using early returns.

Read more

Replacing Keytar with Electron's safeStorage in Ray original

by Adriaan Marain – 3 minute read

Ray is an app we built at Spatie to make debugging your applications easier and faster. Being web developers, we naturally decided to write this app in Electron, which enabled us to move from nothing to a working prototype to a released product on 3 separate platforms within a matter of weeks.

Read more