Mastodon

Ruby Best Practices - Method Arguments

Simple rules for ordering Ruby method arguments — put optional arguments last, and switch to keyword arguments when you have more than one optional parameter.

January 12, 2024
Photo by Michael Dziedzic on Unsplash

Love your error messages as thyself

Stop ignoring error messages and start reading them — it will make you a better developer and help you understand your language from the inside out.

May 17, 2022