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. …
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. …
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!
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. …
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. …
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. …
Most of us are waiting for that one event that will put us in the right feeling, right timing, and right setting before we act accordingly. We are waiting and wishing for that event to happen to us. Yes, at some point it plays a role in creating this turnaround in our life.
Does it mean we should always rely on that?
If we are waiting for something to happen without our control, does it mean we are a victim when it doesn’t work the way we wanted it to work?
Who are we going to blame? Are we going to put the blame on the event or to other people? …
Nowadays it is extremely common to see the usage of Array methods such as
Array.prototype.reduce() to name a few in manipulating list data structures.
You can see a lot of method chaining such as a chain of
Array.prototype.map() to process the transforming of a data, a chain of
Array.prototype.filter() to include/exclude specific items in the array or a mixture of two (2)
Array.prototype.map() and a
Array.prototype.reduce() at the end. Those sorts of chainings are extremely common and that happens very often.
It’s actually a great result having those sorts of chainings to manipulate data but there’s a hidden cost on that in terms of performance and that’s where the Fusion comes in. …
There’s this morning while I’m meditating, something unusual happened and it was amazing.
It was a sleepy morning. I wanted to continue my sleep but I had to get up to prepare and get ready for work. I started by doing my meditation so that I can prime my brain to install the new connections for creation.
When we are meditating, our mind will constantly send or picture a lot of thoughts to distract us or rather to do its normal job. Normally, our mind isn’t used to not thinking or doing something. …
If you’ve been working for a little while with React, you’ll probably have crossed a design or screen that includes a form. A form where the user will input some text, number, or select an item from the dropdown based on the business requirement.
In the past few weeks or months, I’ve been contemplating how does it look like if we have schemas? I kept on digging and digging to that thought. Would it be great? After a long time of contemplating, I think I had a breakthrough thought. I asked myself, is Yup just for Formik? …
David is an engineer who creates a car. Since he was a child, he already wanted to create cars. In fact, during his childhood, he always created cars with the use of cardboards and stitching it with some tapes to build it.
One day, David was given a task to redesign one of the company’s best car. They wanted to redesign it to see if people will like those new designs. David is so happy given that task because he can show his skill and creativity in doing it.
While working on it, he always gives a report to the team about the progress of it. The team is so excited seeing the progress day in and day out. …