Posted about 1 month 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

Does your version of Ruby on Rails still receive security updates?
Rails LTS provides security patches for old versions of Ruby on Rails (3.2 and 2.3).

Owner of this card:

Avatar
Michael Leimstädtner
Last edit:
28 days 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 cookies to improve usability and analyze traffic.
Accept or learn more