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 web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
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)