Something dawned on me the other day - something pretty amazing. So I've been a Software Engineer, Developer - whatever you want to call it, a good chunk of my life. My dad introduced me to coding back in the early 90s,…
Casey Li · November 21, 2020
Ever try setting up Ruby on Rails to use Namecheap's private e-mail to no avail. Me too. Finally figured out some settings that made things work. First off, for your smtp settings: config.action_mailer.delivery_method =…
Casey Li · November 3, 2020
After about 5 years of doing Ruby on Rails development, there is one aspect that for the longest time never seemed to sit well with me: TDD. It wasn't that I didn't understand the benefits, and it wasn't that I didn't…
Casey Li · November 3, 2020
Hey everyone, this will be a quick one. I'm finally coding a Swift iOS app to interface with my Rails app and I'm now at the point where I'm starting to implement PUT or PATCH requests for my record updates. For my…
Casey Li · November 3, 2020
So I've been programming Ruby on Rails for about 9 years now and I'm still learning new things everyday. This is one that definitely caused us some issues. Setup So here's the setup. We have a User model class User <…
Casey Li · November 3, 2020
This is going to be a quick post and applies to a lot of different languages, but it's something we've been doing in our Rails projects a decent amount. If you're ever working on a larger codebase and you decide you…
Casey Li · November 3, 2020
Let's say you have a model of a User. Let's say that if the user's birth year is 1990 or before, then you can't edit that user's first name. So you might have something like this: # User Class class User <…
Casey Li · November 3, 2020
When you run a business, you may inevitably hit a point where you decide that software can help. Whether it be a website for marketing purposes, an app to help with automating workflow, or a solution to give you an edge…
Casey Li · March 20, 2020
The world is full of software. Just take a moment to look around you and you’re probably surrounded with many examples. Whether it be the browser that you’re reading this in, the software you use at work, or the…
Casey Li · November 7, 2019