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…
Author: Kat Padilla
Lakers Ph.D.
Wrapping My Head Around the Fact That LeBron is a Laker
by Kat Padilla • • 0 Comments
Today, I woke up to the the craziest news that LeBron James has agreed to 4-year, $154M deal with Lakers. LeBron James is a Laker. Let. That. Sink. In. LeBron motherfucking James is a motherfucking Laker. Holy shit! It’s been hours and I’m still wrapping my head around the fact that LeBron is a Laker.…
Code
Handling Errors Gracefully
by Kat Padilla • • 2 Comments
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…
Books & Audiobooks
I Listened to The Dispatcher And It Was Awesome
by Kat Padilla • • 0 Comments
I just finished listening to The Dispatcher by John Scalzi, narrated by Zachary Quinto. It’s Audible-exclusive and was created as audio-first. This means that it was intended to be an audiobook first before a printed version so the process of writing was a bit different, as per Scalzi himself. The novella lasts for only 2 hours and…
Thoughts
My Grown-up Christmas Thank You List :-)
by Kat Padilla • • 0 Comments
Code
TRS: Toy Robot Simulator
by Kat Padilla • • 0 Comments
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.…
Code
Heartbreaker: Yet Another Space Invaders Clone
by Kat Padilla • • 3 Comments
I created something out of boredom: http://stuff.katpadi.ph. So… obviously it’s a game. It’s not original. It’s nothing amazing. It’s a space invaders clone with a twist. I am still enhancing the “twist” part. There’s a heartbreaker (it’s a pig!). It rips the hearts out. But the hearts still give hearts anyway. It’s silly, I know. There are…
Thoughts
Shave the BS Off Using Occam’s Razor
by Kat Padilla • • 0 Comments
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…
Code, Tech, Thoughts
TIL: Redis Keyspace Notifications
by Kat Padilla • • 0 Comments
For some reason, I was figuring out a way to be able to listen to Redis so I can fire callbacks when the Redis command or event is encountered. I wanted to do something like: When a key gets removed from the sorted set, it will trigger a script that will notify a user. Browsing…
Code
Git: Squash Commits
by Kat Padilla • • 4 Comments
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…