HiBit

HiBit HiBit is a platform made by and for enthusiasts of the IT world. Read & comment on technical articles

Getting started with CQRS in PHP- - -CQRS stands for Command Query Responsibility Segregation. It's a pattern that separ...
16/06/2025

Getting started with CQRS in PHP
- - -
CQRS stands for Command Query Responsibility Segregation. It's a pattern that separates how an application reads data from how it writes data. This approach can help structure code more clearly, especially in systems that deal with complex business logic or need to scale certain operations differently.

In PHP, CQRS is not a built-in feature. It's a way to organize your code, often supported by using command buses, query handlers, or simple service classes. The main idea is to treat commands and queries as different things, handled by different objects.

CQRS stands for Command Query Responsibility Segregation. It's a pattern that separates how an application reads data from how it writes data. This...

Organizing Laravel helpers using Composer- - -As a Laravel project grows, it is common to see the same small functions r...
09/06/2025

Organizing Laravel helpers using Composer
- - -
As a Laravel project grows, it is common to see the same small functions repeated in multiple places such as formatting values, checking routes, or handling basic text transformations. Instead of scattering these across controllers or traits, a more structured approach is to collect them into a dedicated helper file. While Laravel does not include a default setup for this, Composer's autoload configuration makes it straightforward to register a custom helper file. This ensures those functions are always available throughout the application without manual includes.

As a Laravel project grows, it is common to see the same small functions repeated in multiple places such as formatting values, checking routes, or...

Using the DS18B20 temperature sensor with Arduino Nano- - -The DS18B20 is a digital temperature sensor that comes in two...
02/06/2025

Using the DS18B20 temperature sensor with Arduino Nano
- - -
The DS18B20 is a digital temperature sensor that comes in two versions: a small TO-92 package, and a waterproof variant often encased in a metal tube with a long cable. Both provide digital temperature readings and can be used in many indoor and outdoor projects. The DS18B20 uses a protocol called 1-Wire, which only needs one data line to communicate and can support multiple sensors on the same pin.

The sensor supports several resolution levels: 9, 10, 11, or 12 bits. The default is 12-bit resolution, which gives a precision of 0.0625°C. Lower resolutions can speed up readings, while higher ones provide more detailed temperature data. The DS18B20 sensor measures temperatures within a range of -55°C to +125°C (-67°F to +257°F).

The DS18B20 is a digital temperature sensor that comes in two versions: a small TO-92 package, and a waterproof variant often encased in a metal tu...

Understanding the role of an Engineering Manager- - -Becoming an engineering manager is not just about climbing the ladd...
26/05/2025

Understanding the role of an Engineering Manager
- - -
Becoming an engineering manager is not just about climbing the ladder. It is a complete shift in responsibility. You are no longer measured by the code you write or the tasks you complete. Now you are accountable for how the entire team performs. You can delegate work, but you are still responsible for results. If no one owns a problem, you do. That is not an extra detail, that is the job.

This shift means learning to focus less on your individual contributions and more on enabling others to succeed. It requires staying aware of project status, team dynamics, and the challenges each person faces. Your role is to clear the way, provide support, and make sure work moves forward smoothly.

Becoming an engineering manager is not just about climbing the ladder. It is a complete shift in responsibility. You are no longer measured by the ...

Maximizing MySQL performance with indexes- - -Indexes are one of the tools MySQL uses to make data access faster. Withou...
19/05/2025

Maximizing MySQL performance with indexes
- - -
Indexes are one of the tools MySQL uses to make data access faster. Without them, the database engine has to scan every row in a table to find matching records. This kind of full scan can be slow, especially when dealing with large datasets. Indexes allow MySQL to skip most of the table and go straight to the rows it needs. They're not just about speed, though. Indexes also help with enforcing uniqueness, sorting results, and supporting specific types of queries. But they come with trade-offs, like extra storage use and slower write operations.

Indexes are one of the tools MySQL uses to make data access faster. Without them, the database engine has to scan every row in a table to find matc...

Getting started with Memcache for PHP- - -Memcache is a caching system that stores data in memory to make applications f...
12/05/2025

Getting started with Memcache for PHP
- - -
Memcache is a caching system that stores data in memory to make applications faster and more efficient. It works across multiple languages, including PHP, Python, Ruby, and others. In the context of PHP, it can reduce database load and speed up page rendering by keeping frequently accessed data available in memory. This article focuses on how to use Memcache specifically with PHP.

Memcache is a caching system that stores data in memory to make applications faster and more efficient. It works across multiple languages, includi...

Create Laravel 12 project from scratch- - -Laravel is a PHP framework built to make web development cleaner and faster b...
29/04/2025

Create Laravel 12 project from scratch
- - -
Laravel is a PHP framework built to make web development cleaner and faster by following the Model-View-Controller (MVC) pattern. Since its first release in 2011, it has grown into one of the most popular choices for PHP developers. Laravel brings powerful tools like expressive routing, simple database migrations, a built-in authentication system, and Blade templating, making it easier to build full-featured applications without getting buried in repetitive code.

Laravel is a PHP framework built to make web development cleaner and faster by following the Model-View-Controller (MVC) pattern. Since its first r...

Getting started with the Arduino IDE- - -The Arduino IDE (Integrated Development Environment) is the main tool used to w...
21/04/2025

Getting started with the Arduino IDE
- - -
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.

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 s...

Clean query building using Criteria- - -Criteria is a framework-agnostic PHP package that simplifies the use of the crit...
14/04/2025

Clean query building using Criteria
- - -
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.

The package has recently been updated with several improvements. It now includes a cleanup of unused classes and files, a clearer usage structure, and the use of readonly classes to take advantage of PHP language features that improve safety and consistency. These changes make the package easier to work with, reduce potential bugs, and offer a more stable and consistent experience during development.

Criteria is a framework-agnostic PHP package that simplifies the use of the criteria pattern for filtering, sorting, and paginating data. It helps ...

Using guard clauses to write cleaner code- - -Guard clauses are a practical way to write cleaner functions by handling t...
07/04/2025

Using guard clauses to write cleaner code
- - -
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.

Guard clauses are a practical way to write cleaner functions by handling the unwanted cases first. Instead of nesting your entire function inside a...

Measuring success in Agile projects- - -In Agile, measuring success isn't just about counting completed tasks - it's abo...
31/03/2025

Measuring success in Agile projects
- - -
In Agile, measuring success isn't just about counting completed tasks - it's about ensuring teams continuously improve while delivering value. Without metrics, teams might feel like they're making progress, but they wouldn’t have clear evidence of what's working and what isn't. The right metrics give teams visibility into their workflow, highlight areas for improvement, and help them make better decisions. But Agile isn't about chasing numbers - metrics should support improvement, not dictate behavior.

In Agile, measuring success isn't just about counting completed tasks - it's about ensuring teams continuously improve while delivering value. With...

Controlling fan speed with Arduino using a potentiometer- - -Adjusting a fan's speed using an Arduino is a great way to ...
24/03/2025

Controlling fan speed with Arduino using a potentiometer
- - -
Adjusting a fan's speed using an Arduino is a great way to learn about PWM (Pulse Width Modulation) and motor control. With just a potentiometer and some simple wiring, you can create a smooth, manual speed adjustment system. This setup is useful for cooling electronics, ventilation projects, or any application where adjustable airflow is needed.

Adjusting a fan's speed using an Arduino is a great way to learn about PWM (Pulse Width Modulation) and motor control. With just a potentiometer an...

Address


Alerts

Be the first to know and let us send you an email when HiBit posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Shortcuts

  • Address
  • Alerts
  • Contact The Business
  • Want your business to be the top-listed Media Company?

Share