Engineering

181 posts
Creating a declarative oscillator component with React hooks.

Creating a declarative oscillator component with React hooks.

Most developers are familiar with the concept of imperative and declarative programming.  Imperative programming is when you provide the program with the exact steps to achieve the output with an emphasis on how.  Declarative programming is a coding style where you focus on what the piece should achieve with less...

Immutability with immer

Immutability with immer

Why immutability? When working on a React application that needs to handle state, one of the main pitfalls to watch out for is accidental mutations. This is fancy talk for mistakenly modifying stuff you didn’t want to change: let user = { name: "foo" }; let updated = user; updated.name...

Using Prettier in PHP

Using Prettier in PHP

What is Prettier? Originally from the Javascript ecosystem, Prettier is a code formatter which means it takes your code and makes it – as its name suggests – prettier. There are code formatters for many languages; even Javascript has quite a few of them. Prettier, however, is currently one of the most...

Kubernetes 101 - explaining the basics while running a Laravel application with Redis and MySQL.

Kubernetes 101 - explaining the basics while running a Laravel application with Redis and MySQL.

Kubernetes, also known as K8s, seems to be getting quite some attention these days in the container orchestration world. It even got some attention from Docker Inc. itself a while back, despite the fact that they have their own container management tool called Docker Swarm (and it’s as good...

Firebase and Redux Saga can be friends

Firebase and Redux Saga can be friends

What’s this Firebase thingy? You might have heard about Firebase, a real-time database that stores data as JSON object and was acquired by Google in October of 2014 and became a unified platform for mobile apps.  This article will tell you a bit more on how to move Firebase...

Refactoring towards testability

Refactoring towards testability

When working on a legacy codebase, you often have to make changes in code you don’t fully understand. When this code is not tested, you’re never sure that it will still work after adapting it. And will it have unexpected effects on other parts of the codebase? As...

Running Kibana with Sense

Running Kibana with Sense

Lately we have been missing the Sense Chrome extension, basically because of the autocompletes when we are writing some Elasticsearch queries, or debugging something. It got blocked on Chrome due to a malware issue. In that post, they mention Kibana has a console with the same functionality that we were...

Avoiding Conditionals, an example

Avoiding Conditionals, an example

I didn’t like the code I wrote for a particular feature. It was “notify users when someone comments in a discussion” with these requirements: * Notify discussion author, if not the comment creator * Notify users assigned to the parent model that is associated with the discussion, except: * the discussion author...

How to integrate your Laravel app with Elasticsearch - 2017 edition

How to integrate your Laravel app with Elasticsearch - 2017 edition

This article is an update (2017) of the How to Integrate your Laravel app with Elasticsearch original article from 2015. There is also an updated version of this post (2022): How to Integrate your Laravel app with Elasticsearch – 2022 edition Searching is an important part of many applications, and it...

You’ve successfully subscribed to madewithlove
Welcome back! You’ve successfully signed in.
Great! You’ve successfully signed up.
Success! Your email is updated.
Your link has expired
Success! Check your email for magic link to sign-in.