Image for post
Image for post
Photo by Alexander Hough on Unsplash

2020 is one of the years we might never forget in our entire life. It contains a lot of challenges, explorations, and unexpected changes personally and even worldwide.

Before this year starts, we’ve set out different plans on what to accomplish this year. We’ve set out new goals to accomplish for our development. We’ve set out a promise to ourselves to the things we want to do consistently. It was a fresh new start, a fresh new beginning.

But, life has its own way of doing things. Life has its own natural course.

Earlier this year we were faced with different calamities such as storms, earthquakes, volcano eruptions, bushfires, and many more. A lot of people and animals suffered and some of them got killed during these events. …


Image for post
Image for post

Life offers a lot of surprises, isn’t it so? There are some things that logically make sense but other things, we can’t seem to comprehend how it happened. How many possibilities exist beyond our logical thinking?

Maybe we just don’t realize how we are interconnected with each other.

They say we meet someone in our life because there’s a purpose behind it. A purpose that soon we will be able to realize. How come a stranger be one of the people that are important in my life?

It was an unusual afternoon, I was in a hospital accompanying my auntie for her check-up. While she was inside the laboratory which I cannot go inside, I was told to go around to past time while I wait. While roaming the hospital, looking for a spot where I can sit & relax I had thought, why not just go outside and enjoy the fresh air of nature? …


Image for post
Image for post
Photo by James Harrison on Unsplash

Every December of the year, a free event called Advent of Code is open for all the software developers to join to challenge themselves, explore new technologies, and improve themselves through these puzzles.

The event starts on the first day of the month until the 25th. You can say it is barely a 4 weeks coding practice to you. No limits or rules on what stack you want to use; you can use anything! Each day you will be faced with two parts puzzles that you need to finish to complete the day.

This year I’ve participated in the event with the purpose of exploring new technology and improving myself with algorithms. I’m much more familiar with JavaScript but I didn’t use that one and chose Python as my programming language for this year’s event. …


Image for post
Image for post
Photo by Reed Simon on Unsplash

As human beings, we have the ability to transform ourselves into any form. We have the ability to be whatever we want. If we want to be a snail, we can be. If we want to be an ant, we can be. Of course, we can’t shrink down to their own size but we can be like them if we think like them and act like them.

As we work on transforming ourselves into whatever we want, it’s important to remember that it will not be a quick expedition. …


Supercharge your VSCode with Snippets (JavaScript & React)
Supercharge your VSCode with Snippets (JavaScript & React)
Photo by Markus Spiske on Unsplash

On every iteration of our development, part of our goals is to make our code consistent, faster, and efficient. The better we write the code, the better we can create software.

Most of the developers I know especially on web development uses VSCode as their primary editors. And so I thought maybe it would be great if we could create code snippets that will help our friends, teammates, or colleagues write better code. Maybe, we can. Maybe, yes.

The snippets that we’ll be creating are for JavaScript developers that use React. …


Image for post
Image for post
Photo by Marcus Dall Col on Unsplash

We all have a lot of goals and dreams we want to achieve in our life. Goals and dreams that we’ve been aiming for and dreaming for a long time. Maybe some of us have dreams that we were dreaming of since we were a child.

I have goals and dreams that I’ve been aiming for and dreaming for a long time. They are still on my list, some have no progress and some have progressed now.

There are times I question myself if some of those things are something I totally want. There are times I get afraid of something whether it is real or not, I’m just plain afraid of it. There are times where I want things to be perfect at first which is absurd, at least for me. Ironic isn’t it? There are times I just don’t know. …


Image for post
Image for post
Photo by Paul Teysen on Unsplash

Have you encountered when you are working on a project and you want to upgrade a dependency but you can’t do because you will have to migrate a lot of code?

Let’s say I have this as my package.json and I want to upgrade the package formik to the latest version. The latest version is standing at the version 2.2.0 which is a little bit far from our current version.

We want to upgrade formik to the latest version so we can take advantage of the new features and other new improvements.

But for some reason, we can’t just update it directly because our current version and the latest version contains some breaking changes. Yes, there is a migration step illustrated but we can’t just migrate all the places where it is being used due to time constraints and priorities. …


Image for post
Image for post
Photo by Clint Adair on Unsplash

There are a lot of approaches we can make to do an API call in React. I will share what I’ve learned and discovered after dealing with different types of making an API call in React. This includes executions through hooks and without hooks.

I’m also here to try and rethink the approaches that we always have but we tend to forget because of the new things. How well do we know the fundamentals?

Without further ado, let’s get started!

👨‍💻 Designing our Hooks

Before we get started with the different patterns, let’s start designing how our hooks will look like and also discuss why it was structured that way. …


Image for post
Image for post
Photo by Markus Spiske on Unsplash

Programming or coding is both the same for me. Create an application through codes, solve problems through codes or anything code related. It boils down to code.

Sit in front of the computer for hours, you sleep, then you wake up and code again. Repeat it every day. That’s how other people see programmers, some geeks that have some tasks out of the Earth, and just code all day.

This afternoon, someone asked me, aren’t you tired of coding? Aren’t you getting burn out from doing it every day?

Did you ever have that kind of question where you had to stop for a minute and think? I stopped everything I’m doing at that moment and think. Those questions were great. Questions that will allow you to think and re-evaluate your current state. …


Image for post
Image for post
Photo by Ross Sneddon on Unsplash

This is a continuation of the previous article I wrote titled, Fusion in JavaScript. Fusion is a technique of combining pure functions — taking advantage of composition and removing the intermediary copies of data on each layer. If you haven’t read about it, please do so! You can find it here.

📖 Introduction to Transduction

In applying the Fusion technique, you can only use it if all the functions have the same shape of arguments and the same shape of return. Here’s our example back there

You can see that our mapper functions have the same shape — both accept a number and they both return the same shape. …

About

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