Posted 9 months ago. Visible to the public. Linked content.

Five years of "Today I Learned" from Josh Branchaud

The linked GitHub repository is a bit like our "dev" cards deck, but groomed from a single person (Josh Branchaud). It includes an extensive list of over 900 TILs on many topics that might be interesting for most of us. (e.g. Ruby, Rails, Git, Unix..)

Ruby

Here is an excerpt of all the Ruby TILs that were new to me. I encourage you to take your time to skim over the original list as well!

Copy
RSpec.configure do |config| config.example_status_persistence_file_path = "tmp/failed_specs.txt" end # Then, run "rspec --only-failures"
Copy
{key: [1,2] }.each { |key, (x, y)| puts "#{x}- #{y}" }
Copy
# frozen_string_literal: true
Copy
binding.local_variables.inspect
Copy
gem environment
Copy
stub_request(:post, %r|/api/posts|)
Copy
[1,2,3].count { |x| x.odd? }
Copy
bundle install --jobs 4
Copy
bundle _1.16.6_ --version
Copy
puts "I am #@name"
Copy
let(:order) do create(:order, name: "My Order").tap do |order| create(:item, name: "Burger", order: order, price: 4.99) create(:item, name: "Fries", order: order, price: 2.99) end end
Copy
Float#next_float Float#previous_float

Chrome

  • On the developer console, copy data to the system clipboard with copy('data').

Git

JavaScript

Growing Rails Applications in Practice
Check out our new e-book:
Learn to structure large Ruby on Rails codebases with the tools you already know and love.

Owner of this card:

Avatar
Michael Leimstädtner
Last edit:
9 months ago
by Dominik Schöler
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Michael Leimstädtner to makandra dev
This website uses short-lived cookies to improve usability.
Accept or learn more