KatPadi's Point

Author: Kat Padilla

I am a caffeine-dependent aspiring web developer. You can find me at @katpadi tweeting random stuff about my misadventures as an amateur coder or about the Lakers. I do a lot of stuff with my computer.

Losing My Hero

I lost my hero— someone I looked up to since I was a kid. Someone who taught me that hardwork trumps talent because if you want to be great in a particular area, you have to obsess over it. Someone who cultivated the whole Mamba Mentality philosophy— the mantra that I’ve adopted into my daily…

Handling Errors Gracefully

Sometimes it makes sense to treat errors as part of an application’s “valid” flow of events. Meaning, expected errors should not necessarily make your code go crazy when random errors are raised. With that in mind, I created a way to implement some kind of “Result Object” by rescuing StandardError instances and handling these errors…

TRS: Toy Robot Simulator

A few weeks ago, I created a basic Ruby gem implementation of the “Toy Robot Simulator” problem. Toy Robot Simulator wuttt??? The scenario is that the application is a simulation of a toy robot moving on a square table of certain dimensions. The robot is free to roam around the surface but must not fall.…

Shave the BS Off Using Occam’s Razor

I try to always apply the concept of Occam’s Razor ever since I heard about it. I encountered this particular theory way back in 2013. Although Occam’s Razor is more commonly described in pop culture as “the simplest answer is most often correct”, it is quite an oversimplification. The more correct interpretation is that “entities should not…

Git: Squash Commits

With git it’s possible to squash previous commits into one before sharing them with others. Step 1 For example you want to squash your last 3 commits: git rebase -i HEAD~3 On the other hand, if you want to just simply squash all the unpushed commits: git rebase -i origin/master If you have many commits and…