Posts tagged "ruby"
-
Ruby LockRun
Ensuring singleton execution in a distributed system
-
Ruby Enum
Standardize a few common things we want from Enums using a simple DSL
-
Rails helpers as a class
How to use Rails' helper methods usable outside of ActionView
-
SOLID in Rails: An Open/Closed principle example
Yes, the Open/Closed principle *can* be applied in a Rails app! Here's an example.
-
Hacking FactoryBot to build a factory UI (2 of 2)
Part 2: Hacking around uniqueness validations
-
Hacking FactoryBot to build a factory UI (1 of 2)
Part 1: The main guts of the FactoryBurgers gem
-
Publishing a Ruby Gem with a React-based front end
Using Rack middleware in a Gem to serve assets from a React build
-
Wrapping Rake
Useful before and after hooks to rake
-
Fun with Enumerators, part 3: Wrapping Enumerators
It's Enumerators, all the way down.
-
Building Python's 'with' in Ruby
Replicating a neat feature of another language
-
Silent Nils
Nil, Null, None, and Noel, Born is the King of Code Smell
-
Method Madness: Chapter 2
How class methods in Ruby totally explain the "singleton class" thing
-
Method Madness: Chapter 1
Binding and unbinding methods in Ruby
-
More Fun With Enumerators: Nesting
Enumerating over a custom sub-structure of a list
-
Composition over Inheritance
A re-exploration of what this phrase actually means
-
Abstract Interfaces in Ruby
Declare a method interface for Ruby classes
-
Fun With Enumerators: pagination
Create an enumerator that seamlessly iterates over individual items fetched in pages
-
Rails is Ridiculous
A rant about some decisions in Rails
-
objectification
How Ruby encourages bad OOP design
-
secret
Modify a core class ... secretly
-
duck, duck, goose
If it quacks, does it really quack like a duck?
-
offline_lookup
An easy gem to avoid db queries for lookup tables