Join tables in Rails
Let’s say you have a users table and a shows table. A user
has_many shows and a show can
have_many users. You’d need to set up a join table for this.
My reflections as a father to a 9 month old baby
If I don’t write about my experiences as a father while my boy is growing up, it’s almost certain that hormones will take over and I’ll forget how I really felt. Here are some of the themes that came up.
How to ruin your life in your 20s
I’ve lived through my 20s. While I can’t tell you the exact path that will lead you to your destiny, I can list several things that will prematurely trap your life. If you’re aware of these, you’ll have a better chance of avoiding them.
Why I use European Kendamil Baby Formula rather than Enfamil / Similac
My kid was born and I couldn’t find baby formula in stores. It was the US baby formula shortage of 2022. Luckily, I had samples of Enfamil and Similac but they were quickly depleting.
Techniques I use to put a baby to sleep
Here’s what I learned about putting my kid to sleep and the mistakes I’ve made.
Adding Rails references with strong migrations gem
strong_migrations gem prevents large database tables from locking up when running database migrations. The drawback is that instead of running one easy Rails migration, you end up breaking up migrations into three parts.
Essential items for a newborn
If I had to become a first time father again, here are the essentials I’d get for my newborn. I used all the items I list here.
Hear the raw truth from these online parenting communities
While you can ask parents around you about their parenthood experiences, you’ll seldom hear the raw truth. You won’t hear things like — I don’t know if I’d do it again. Or how about — my life has never been the same and I’m depressed. Or how about — it caused my divorce. You’ll mostly hear It’s hard but oh my god, it’s worth it.
Should I have kids? Advice for my younger self
I write this as a Dad with a newborn that is about two months old.
How to maintain your mental health while caring for your newborn
Taking care of a newborn child is difficult. It’s way harder than I imagined. There’s no off switch. There’s no clocking out.