Skip to content

Details

Come join us at Quikly's office and meet like minded individuals working in Ruby. Mike Schutte will be speaking about Fetch and Dig in Ruby.

-------------------------------------------------------------------------------------------------
Fetch and Dig Yourself to Safety:
We've all been burned by `NoMethodError: undefined method "___" for nil:NilClass`. One common path that leads us there is indexing arrays and hashes and attempting to chain method calls. Trying to capitalize the first string in an array? What if the list is empty? Trying to get a user profile bio? What if `profile` in `user.profile.bio` is not assigned? Let's take a step back from feature development and meditate on some Ruby fundamentals. In this talk, I'll cover some history and dangers of `nil` as a concept and how you can mitigate these vulnerabilities with Ruby's builtin `fetch` and `dig` methods for arrays and hashes.

Speaker Bio:
Mike Schutte is always uncomfortable describing himself in third person. In 2016, he pivoted his career aspirations from sociology to software development. His passion for learning, teaching, and writing elegant code is so massive it would cause stack overflow on most modern machines. When not refactoring code that doesn't need refactoring, you might find him running laps on Belle Isle or experimenting with water temperature and ground size for his pour-over ritual.
twitter/github: @tmikeschu

------------------------------------------------------------------------------------------------
Agenda:
6:00 - 6:50 - Eat and Networking
6:50 - 7:00 - Announcements and Sponsor
7:00 - 7:30 - Talk
7:30 - 7:45 - Q & A
7:45 - 8:30 - Networking and Cleanup

Related topics

You may also like