CSV files can be overwhelming, but it’s a common way to store large amounts of data. Here’s a walkthrough on how to seed it into your Rails database

Y’all should’ve seen my face when I downloaded my first CSV file.

What the hell is this?

First of all, I had never seen anything like it before— it was super jumbled up.

I didn’t even know what a CSV file is, let alone how to use it. I had my work cut out for me.

After deciding to build a Rails backend, I had to somehow figure out how to bring that CSV file into my database. …


A walkthrough on how to use this simple but powerful hook in your React application

Photo by Ferenc Almasi on Unsplash

React hooks provide our functional components with a lot more power — becoming a more preferred approach to building applications in recent times compared to class components.

The useContext hook is no different, but it’s also important to note that it operates a bit differently compared to some of the more common React hooks, such as useState and useEffect.

This week, I was given a take-home assessment to re-create the functionality and design of a popular website to calculate your NPS (Net Promoter Score).

Delighted NPS Calculator: https://delighted.com/nps-calculator

As you can see on the website, the inputs of each row…


Failure after failure. I keep pushing but keep finding myself back to where I started. Am I good enough? Should I continue?

How does one find motivation, let alone maintain it?

Passion is typically one of the first things that people mention. Whether it’s a new career choice, a new hobby, etc. — it’s easy to be motivated if you love what you do.

But what if we constantly fail at the thing you love?

Today marks one year since I’ve received a paycheck as a full time employee. …


A walkthrough on how to determine if both strings contain the same number of vowels using the Frequency Counter approach in JavaScript

Let’s get right into it, shall we?

Note that this problem is on Leetcode (question #1704). To follow along, the link to the question is as follows: https://leetcode.com/problems/determine-if-string-halves-are-alike/

The Problem

Our problem states:

You are given a string s of even length. Split this string into two halves of equal lengths, and let a be the first half and b be the second half.

Two strings are alike if they have the same number of vowels ('a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'). Notice that s contains uppercase and lowercase letters.

Return true if a and b are alike


Because a regular old palindrome just isn’t enough. A walkthrough on how to solve Noisy Palindrome algorithm problem using ASCII in JavaScript

“A regular palindrome would be too easy, right?” — said no one ever.

Well, that’s probably a lie, but you get my point. If you’re like me & investing your time on various sites solving different coding exercises, you’ve more than likely come across the classic palindrome question where it asks you whether a string a palindrome.

In case you haven’t, no worries! …


A walkthrough on how to conceptualize the matrix and solving this algorithm question using brute force

Photo by Scott Graham on Unsplash

For some reason, I am having the hardest of times understanding matrices.

It’s not my first foray in working with matrices, but it’s the way that it’s structured and the 2D nature of it that has me going in circles in my mind as I try and process how I would iterate a matrix.

And here we are — writing another blog on matrices. Hopefully, the additional writing and practice will help me (and you as well!).

A matrix, in simple terms, is an array of arrays. A matrix is a square of numbers, or a 2D matrix of numbers…


A walkthrough on solving this algorithm question using a hash map.

Man, I am really starting to like hash maps.

It’s a strange feeling. Just a few months ago, I could barely solve an algorithm question on my own, let alone coming up with an efficient enough solution. While I still recognize the vast gap that I need to overcome to get to where I want to get to as a software developer, it’s important to recognize these small wins in my self-development.

This feeling is no different — using a hash map repeatedly has forced my mind to consider it as an option with most algorithm questions that I’m encountering…


Tests don’t always have to be hard or scary. How writing your own tests early on as a developer can benefit you in the long-term

If you’re like me, then you understand where I’m coming from when I say that I have always dreaded assessments. Perhaps it was the anxiety, the lack of knowledge, or performing under pressure (or maybe all of it…). Either way, it was a fear that I never overcame, and still haven’t overcome to this day.

However, as I’ve gotten older, I’ve become more accepting of exams and the purpose behind them. Yes, they’re still scary and always will be, but if we view them less as, “Gotcha! …


The Japanese art of finding perfection in the imperfect. Is this concept possible in your job search?

As human beings, our minds have been trained since an early age to strive for perfection.

Scoring a 100% on an exam. Watching your favorite soccer player score the perfect goal. Admiring your favorite idol on the red carpet wearing the perfect dress. All of these perfections are celebrated & admired. We should all aim to do the same.

Or should we?

Speaking personally, I am a 32 year old Asian male living in northern Brooklyn, NY. Reflecting on my life, my past is anything but a perfect.

Born & raised in a small town called Vestal, NY in upstate…


A walkthrough on how we can solve this coding exercise by using a hash map

Roman numerals are represented by seven different symbols. The following symbols and their values are as follows:

Let’s start with some simple examples. The number “3” is written as III in Roman numeral, where we add the three one’s together. The number “7” is written as VII, where we add “V”, which is 5, to II, which is 2, resulting in 5+2 = 7. The number “11” is written as XI, where we add “X”, which is 10, to I, which is 1, resulting in 10+1 = 11.

With the above examples, we have them written in a way where…

Warren Niu

Uncovering the truths of Software Engineering one story at a time. Former Healthcare Administrator and proud dad of my Pomeranian, Nami. Based in Brooklyn, NY

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