So, let's retry that?

Sometimes we just really need to execute something until it works, right? Or just give up after a number of attempts. That's what we will talk about today: how to retry in Laravel.

Sep 24, 2022
Laravel

Build validation that you can be proud of in Laravel

For me, this is part of what makes Laravel so elegant and fluent. Although it allows you validate your input data using multiple approaches, it gives you guard rails to ensure that it will work well and will stay organized as your application grows.

May 08, 2022
Laravel

The 11 books I read in 2021

I used to be a bookworm. Most of the reading was done in my commute to college or high school classes. Now, I'm trying to pick up the pace and take the time to do it, and this article is a look back on the books I read in the past year.

May 07, 2022
Personal

How this pattern made me write reusable Vue components with little effort

In this article, I'll show you how to refactor a Vue component separating concerns and making them more reusable with the container/presentational pattern

May 07, 2022
Vue.js

Formatting numbers in JavaScript

In the last couple of posts, I showed you how you can format dates and relative dates using the native Internationalization API. Today, I'll we're going to format regular numbers using the same API

Nov 03, 2021
JavaScript

How to format relative dates using native JavaScript

Relative dates are very common in applications where you want show the user the amount of time that has passed or will pass until something happens (e.g. "published 1 day ago") rather than the specific date and time when something happened (e.g. "published on 01/11/2021").

Nov 02, 2021
JavaScript

Formatting dates in JavaScript using the user's locale

Currently, there are multiple libraries to format dates in JavaScript, but I bet you don't really need them for basic use cases. In this post I will show you how to format dates using the user's locale.

Nov 01, 2021
JavaScript

Useful JavaScript array methods

Each of these methods has their own use case, and even though you can achieve the same results using a combination of a for loop and a few auxiliary variables, understanding them and using them where appropriate will make your code a lot more readable and simpler.

Aug 02, 2021
JavaScript

How to squash commits in Git

Today, I'd like to show you a quick tip that can help you during big git merges, future rebases or just to keep your branches and commit list cleaner.

Jun 07, 2021
Git

Destructuring Assignment in JavaScript

The destructuring assingment is an expression that allows you to extract values from arrays and properties from object into variables

Jun 04, 2021
JavaScript

The different ways to do routing in Laravel

Routing in Laravel is very flexible. You can define the routes to your app in so many ways, each with a different purpose. Today, I want to show you a few ways that helped me and that I use very frequently while working with Laravel.

Jun 03, 2021
Laravel

How to create a toast notification with Alpine.js

Today I’ll show how to create a piece of UI that comes up very often when we want to communicate the result of an action to the user: toast notifications!

May 29, 2021
JavaScript

Let’s build an accessible modal with Alpine.js

Modals are widely used as means for quick interactions, forms, or just to provide extra information. In this post we will build a modal with Alpine.js covering transitions and a11y.

Mar 28, 2021
JavaScript

How to use Twig in Laravel

Laravel comes bundled with its own templating engine called Blade which is very powerful, but you also have the option to use Twig instead.

Jan 27, 2021
Laravel

2020 in Review

I decided to write this post to reflect on what I achieved last year to give me some perspective. I plan on doing this post every year from now on with this objective in mind.

Jan 13, 2021
Personal

How I added Dark Mode to my blog using TailwindCSS

Dark mode is a color scheme of interfaces that display light text and elements on a dark background. Let's use TailwindCSS to add it to a site.

Oct 30, 2020
TailwindCSS

How to build a real time chat app with Node.js and Socket.io

Lots of applications rely on real time data delivery to provide value to the user. From instant messaging, to online multiplayer games, IoT, ad servers, and stock exchange brokers.

Aug 09, 2020
Node.js

Web scraping with Puppeteer

If you want to scrape some data directly from websites, especially if they rely heavily on JavaScript, then you should probably check out Puppeteer.

Jul 06, 2020
Node.js

Let's build an ajax form with Alpine.js

In the previous post, I wrote about Alpine.js, how to use it and we built a tab navigation example with this framework. Now, let's take things one step further.

Jun 23, 2020
JavaScript

Let’s build a tab navigation with Alpine.js

I like to think of it as a lighter and lower cost Vue.js mixed with TailwindCSS. The syntax is very similar to Vue.js and you sprinkle it in your HTML just like TailwindCSS.

Jun 06, 2020
JavaScript

How to create a Rest API with Laravel

Laravel makes it quick to get up and running with Rest APIs that you can use to feed data to mobile apps, javascript applications or other applications. In this post, I'll show you how easy it is to do it.

May 16, 2020
Laravel

Cleaning up merged git branches

If you use any git workflow similar to git flow, then you probably have many merged branches. Learn how to remove them quickly.

May 04, 2020
Git

Local Storage

A type of web storage that enables JavaScript applications to access data stored directly in the browser with no expiration date.

Apr 11, 2020
JavaScript

For Loops in JavaScript

JavaScript has at least three distinct ways of defining "for" loops and they can be used to solve different problems and make your code more legible.

Mar 20, 2020
JavaScript

Const, Let and Var

There are three ways of declaring a variable in JavaScript: var, let or const. Each one has their own peculiarities. Learn how and where each one is used.

Feb 28, 2020
JavaScript

How to watch nested object properties in Vue

How to watch properties nested in JavaScript objects in a simple and elegant way

Feb 21, 2020
Vue.js

How to use git cherry-pick

How to apply only changes introduced by one or a few commits not having to merge the entire branch

Feb 14, 2020
Git

How to sort an array by date in JavaScript

Sort arrays by date and do not bring external packages and more complexity to your project

Feb 09, 2020
JavaScript

Smarter Vue Watchers

Simplifying Vue components' code and making them more legible

Feb 08, 2020
Vue.js

How to look for a branch in git

Your coworker created a new feature and asked you to review it. How to look for a branch that someone else created and pushed to the remote repository using Git?

Jan 31, 2020
Git