Recent articles

Preview post image

Getting started with the Arduino IDE

  • avatar
  • 6 mins read

The Arduino IDE (Integrated Development Environment) is the main tool used to write, edit, and upload code to Arduino boards. It's designed to be simple enough for beginners while still providing enough functionality for more experienced users. With a clean interface and compatibility with a wide range of boards, it's the go-to software for working with Arduino hardware.

Read more
Preview post image

Clean query building using Criteria

  • avatar
  • 5 mins read

Criteria is a framework-agnostic PHP package that simplifies the use of the criteria pattern for filtering, sorting, and paginating data. It helps separate query logic from repositories, making the codebase easier to maintain and extend over time. By using Criteria, developers can handle complex querying needs without spreading filter logic across different parts of the application.

Read more
Preview post image

Using guard clauses to write cleaner code

  • avatar
  • 3 mins read

Guard clauses are a practical way to write cleaner functions by handling the unwanted cases first. Instead of nesting your entire function inside a stack of if conditions, you check for the early exits up front - returning or throwing as needed - and move on. It's a habit that keeps code flatter and easier to read. The structure becomes simpler, and it’s immediately clear what the function does and under what conditions it doesn’t even bother.

Read more