Photo by Loic Leray on Unsplash

The willingness to take bold decisions is what moved you in the past, what is moving you right now, and what will move you in the future.

If you will give time and observe your previous accomplishments, you will see that it wasn’t because it was given to you.

You worked for it.

You’ve set up yourself that I will do this regardless if there are people or none watching. You’ve decided that you wanted it. You wanted to create it or reach it.

It was the previous you who decided to reach for it.

You were courageous enough to…

Photo by Braden Collum on Unsplash

Before you’ve given the opportunity to play, you have to put in the work behind the scenes. Your name won’t be called with you doing anything.

Luck isn’t in your DNA. Luck isn’t given to you by sitting on the couch all day long. You’re waiting for nothing if you just wait and without working.

One of the famous metaphors is the iceberg. You only see the tip of the iceberg which is the moment someone is living his/her dream. But you don’t even see the rest of the mountain. …

Photo by Michael Dziedzic on Unsplash

Most of the applications we are building today require some authentication to prevent accessing a screen that is not intended. When a screen requires authentication we have to make sure it can be accessed with the appropriate roles or conditions.

Maybe you are already familiar with this pattern, maybe not. Allow me to show you how we can protect our ReactJS routes with ProtectedRoute component and the guard functions.

We are going to demo this on a simple application scaffolded by create-react-app. This concept can still be applied to any setups like on NextJS (server-side) or with Gatsby.

Let’s get…

Photo by Andy Holmes on Unsplash

We often want to reach things to come at us immediately. We want to build something in a fast manner and not knowing we are missing the important small details.

Why don't we try to reach something in a slow manner?

When I say slow, it doesn't mean you slowly move literally. What I want to say is maybe it would be best to try and reach something slowly every single day.

When you look into a larger perspective, things changed. If you know that each day you work on the thing you want to build is going to develop…

Photo by Uri Paz on Unsplash

We all have goals and dreams in life that we want to achieve. We set out plans on how to achieve them and how we will accomplish them. We contemplate and visualize it being on our hands every single night.

Then suddenly something hits. All of a sudden there's an obstacle that seemingly preventing us from moving forward towards our goal. It is slowing our progress and the worst is it is killing our progress!

We had planned out to accomplish or reach it in 3 months but it's already 6 months and we haven't reached the goals that we…

Photo by Joshua Aragon on Unsplash

I’ve been using Yup primarily because of Formik for form validations in React. Other than that, I’ve rarely used it on other things in the past. I can’t say it enough but Formik with Yup looks like couples.

Have you used Formik without Yup? Or, have you used Yup outside Formik? I bet you didn’t.

This isn’t a promotion of Yup but out of curiosity again I’ve used Yup to validate and transform my API Endpoint and I liked it.

Before I show you the examples, I would like to tell you why I got here. When dealing with a…

Photo by Sebastian Scheuer on Unsplash

Most of us are conditioned to build walls around them with the belief that it will protect them from external elements. It can be a wall that prevents you from sharing your problems with others because you don't want to be seen as weak or someone who isn't responsible.

Are we truly protecting ourselves when we put up walls within us or is it the other way around?

I've put up a lot of walls over the course even until now I have walls that are surrounding me to keep me from being hurt or lose myself from the dangers…

Photo by Federico Respini on Unsplash

What would happen if we act like our future is happening already?

What would happen if we act like our dream is now about to come?

We don't know when but it is arriving at you already.

What actions are you going to show?

Do you still remember the last time you get so happy like nothing matters to you? It's like the rest of the world paused and the issues we thought were real issues had gone away during that moment.

What happened back there?

I do this every time I want something. I act like I'm already on…

Photo by Fotis Fotopoulos on Unsplash

On my quest to explore functional programming in JavaScript I came across this “new” way to do try-catch statements in the code.

One of the issues, I can see on the non-functional try-catch is you’re forced to create a mutable variable. Take this example:

If you want to examine the data object, you have two choices here. You go through the rabbit hole inside the try-catch block statement and do all your things there or create a mutable variable that you can access outside the try-catch block.

You’re either forced to create a mutable variable or go through…

Photo by Madhu Shesharam on Unsplash

In the past months, I have been into multiple health issues. One is about my foot having some wound that gets infected and comes to the point where I can’t even walk anymore.

The other one is when I thought I had some lymphatic system issue where my lymph node at the back of my head went crazy and gave me a big grape! It almost prevented my head from moving in any direction and just looked straight.

It was a boil. It was painful and gave me sleepless nights. …

JM Santos

Improvise, Adapt, Overcome

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store