Read more

Five years of "Today I Learned" from Josh Branchaud

Michael Leimstädtner
April 27, 2020Software engineer at makandra GmbH

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

Illustration UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
Read more Show archive.org snapshot

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

RSpec.configure do |config|
  config.example_status_persistence_file_path = "tmp/failed_specs.txt"
end
# Then, run "rspec --only-failures"
{ key: [1,2] }.each { |key, (x, y)| puts "#{x}- #{y}" }
# frozen_string_literal: true
binding.local_variables.inspect
gem environment
stub_request(:post, %r|/api/posts|)
[1,2,3].count { |x| x.odd? }
bundle install --jobs 4
bundle _1.16.6_ --version
puts "I am #@name"
  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
Float#next_float
Float#previous_float

Chrome

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

Git

JavaScript

Michael Leimstädtner
April 27, 2020Software engineer at makandra GmbH
Posted by Michael Leimstädtner to makandra dev (2020-04-27 15:44)