PinnedPublished inBetter ProgrammingDevise Auth Setup in Rails 7Integrating Devise Auth with Rails 7 has some undocumented twists. Learn about them here or use the included template to bypass themJan 9, 20226Jan 9, 20226
Published inTowards DevThe best index scheme for polymorphic associations in PostgresIf you want a fast lookup on a database foreign-key, you index it. But when your key has an ID and a type, which should we index?Feb 6, 2023Feb 6, 2023
Why you, a software engineer, should sell pet drugs on the internet with me18 months ago, I left my job at Amazon Pharmacy to help start an online pet pharmacy. It was a great decision. Would you like to join us?Aug 25, 2022Aug 25, 2022
Published inBetter ProgrammingRuby Tip: How to Finish a Method After an Interrupt, Before ExitingA look at the flawed approach and the better solutionApr 7, 2022Apr 7, 2022
The Big Tech DialectLeverage the best words to move that needle up and to the right!Feb 28, 2022Feb 28, 2022
Published inBetter ProgrammingShow and Hide Elements With Rails 7’s StimulusWithout thinking about Javascript, know to annotate elementsJan 27, 20221Jan 27, 20221
Published inBetter ProgrammingUsing “Belongs_to” to Write Better Rails Tests With (or Without) AssociationsBelongs_to requires an association by default and that’s good, but painful for testing. Here’s how to write great tests regardlessJan 19, 2022Jan 19, 2022
Switching Character Control in Unity: Part II, ImplementationYou need help. You’re building a game that requires a player to switch between characters. Here’s how you do it.Jan 15, 2022Jan 15, 2022
Switching Character Control in Unity: Part I, DesignYou need help. You’re building a game that requires a player to switch between characters. Here’s how you do it.Jan 15, 2022Jan 15, 2022