Metaprogramming in Ruby and Doing It Wrong
Offered By: YouTube
Course Description
Overview
Explore metaprogramming in Ruby and its potential pitfalls in this 24-minute conference talk from Derbycon 2016. Delve into the fundamentals of Ruby, its strengths, and the concept of metaprogramming. Examine Rails Dynamic Finders and the "Three Deadly Metaprogramming Senses." Learn through practical examples, including the use of eval and method_missing. Discover common mistakes and their solutions, with a focus on ActiveRecord implementation. Gain insights into effective Ruby programming techniques and best practices for metaprogramming.
Syllabus
Introduction
What is Ruby
Whats best in Ruby
What is metaprogramming
Rails Dynamic Finders
Three Deadly Metaprogramming Senses
Why would we use this
Example
The Bad
The Fix
Constanteyes
EmployeeID
Payment Method
eval
Why use eval
Whats the fix
Method missing
ActiveRecord
I love Ruby
Questions
Related Courses
Building Geospatial Apps on Postgres, PostGIS, & Citus at Large ScaleMicrosoft via YouTube Unlocking the Power of ML for Your JavaScript Applications with TensorFlow.js
TensorFlow via YouTube Managing the Reactive World with RxJava - Jake Wharton
ChariotSolutions via YouTube What's New in Grails 2.0
ChariotSolutions via YouTube Performance Analysis of Apache Spark and Presto in Cloud Environments
Databricks via YouTube