Code & Clay – Notes to self. Mainly Ruby/Rails.
Write software well
28 Feb 2019
Other posts
Hashes with default procs
Hash#to_proc
Hash defaults
What does the then method do in Ruby?
What does the tap method do in Ruby?
Monkey-patching locally
Audiobook streaming platform on AWS stack and Ruby on Rails
How to rename database columns in Rails
Use inverse_of when creating associations with non-standard naming
Nested attributes
Use is_a? when checking class
Enhanced shell scripting with Ruby
Understanding how to implement a feature that enables users to follow each other
Giving an association a custom name
Polly want a message
Be careful when memoizing booleans!
Value Objects In Ruby
Override `#hash` when overriding `#eql?`
The naked asterisk
Value objects
Losing motivation
Write software well
Dependency injection is not a virtue
Primay keys: UUID vs bigint – or both?
Polymorphic associations
UUID as column type in create_join_table
Avoid the three-state boolean problem
Rails SQL Injection
SQL Notes
How to Count With ActiveRecord
Rails: How can I create multiple rows at once?
Unicode null
Object#itself