avatar
HiBit
888
204 39


Organizing Laravel helpers using Composer

  • avatar
  • 535 Views
  • 4 mins read
Preview post image

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.

Using the DS18B20 temperature sensor with Arduino Nano

  • avatar
  • 313 Views
  • 7 mins read
Preview post image

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.

Understanding the role of an Engineering Manager

  • avatar
  • 295 Views
  • 1 Like
  • 6 mins read
Preview post image

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.

 Join Our Monthly Newsletter

Get the latest news and popular articles to your inbox every month

We never send SPAM nor unsolicited emails

Maximizing MySQL performance with indexes

  • avatar
  • 362 Views
  • 2 Likes
  • 6 mins read
Preview post image

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.

Getting started with Memcache for PHP

  • avatar
  • 268 Views
  • 1 Like
  • 5 mins read
Preview post image

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.

Repository cache in Laravel

  • avatar
  • 1.1K Views
  • 1 Like
  • 11 mins read
Preview post image

In modern web applications, optimizing data retrieval is crucial to improving performance and user experience. One common practice is caching database queries to reduce redundant calls to the database. While Laravel offers built-in caching features, in some cases, you may want to implement custom repository caching manually to better control your caching mechanism. This article will walk you through implementing repository caching in Laravel 12, explaining the steps involved and how to achieve better performance in your application.

Create Laravel 12 project from scratch

  • avatar
  • 1.1K Views
  • 2 Likes
  • 6 mins read
Preview post image

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.

Getting started with the Arduino IDE

  • avatar
  • 374 Views
  • 6 mins read
Preview post image

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.

Clean query building using Criteria

  • avatar
  • 357 Views
  • 1 Like
  • 5 mins read
Preview post image

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.

Using guard clauses to write cleaner code

  • avatar
  • 355 Views
  • 3 mins read
Preview post image

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.



Playing popular songs with Arduino and a buzzer

avatar

HiBit

Yung Kai - Blue has been added.

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

First day out has been added.

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Vanilla Ice - Ice ice baby has been added.

Enjoy!

Getting real-time position using MPU9250

avatar

HiBit

We used an existing library for this. You can see how it was implemented in the code snippet above.

It is also accessible in our GitHub repository.

Reading MPU9250 sensors with Arduino

avatar

HiBit

The article Getting Real-Time Position Using MPU9250 explains how to calculate real-time position using sensor data.

Complementary filter and relative orientation with MPU9250

avatar

HiBit

You can learn how we calculate pitch and roll using a complementary filter in this project; the file is available on GitHub.

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Assassin's Creed 2 - Ezio's Family has been added!

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Livin' on a prayer has been added.

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Crystal Castles Kerosene has been added.

Enjoy!

How to use the NRF24L01 module with Arduino

avatar

HiBit

The D10 pin has a specific function; it must be set as an output for the Arduino to operate as the master in an SPI communication protocol. In the provided wiring and code, the pin is already functioning as an output.

How to use the NRF24L01 module with Arduino

avatar

HiBit

I suggest verifying the wiring to confirm that all components are correctly connected, followed by re-uploading the code. The examples provided in the post have been tested and are operational. Please consider that there might be a physical problem, such as a damaged or defective module.

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Coldplay - Hymn for the weekend has been added.

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Was wollen wir trinken has been added.

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

The board has built-in memory. If additional memory is needed, an alternative board can be used.

Playing popular songs with Arduino and a buzzer

avatar

HiBit

The Doom melody requires more memory than others, so make sure your board can handle that amount. If not, you will usually encounter an error during compilation.

As a workaround, you can try removing some of the notes (along with their respective durations) to fit the melody on the board.

Playing popular songs with Arduino and a buzzer

avatar

HiBit

We couldn't find notes for that song that will sound good with a buzzer.

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Right Here Waiting has been added.

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Never Gonna Give You Up has been added.


Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

We just added End of Beginning by Djo.

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

It's you song by Max feat Keshi has been added.

Happy anniversary!


HiBit community member since December 2020