Open in app

Sign In

Write

Sign In

Josua Schmid
Josua Schmid

16 Followers

Home

About

Aug 25, 2021

space ≠ space

Has it ever happened to you that it seemed as if there was still space on your hard disk, but somehow there wasn’t? $:/home# touch blub touch: cannot touch 'blub': No space left on device $:/home# df -h Filesystem Size…

Linux

2 min read

Linux

2 min read


Jul 14, 2021

Conventionally-Typed Ruby

The Ruby programming language is made for people. Great effort is put behind keeping the language easy to understand for the human reader. This emphasis is not self-evident. It’s far easier to create programming languages which are easy to read by machines. But this always comes with the trade-off that…

Ruby

3 min read

Ruby

3 min read


May 6, 2021

Cecina recipe

During summer holidays in Pisa my wife an me booked a food tour. A local guide took us to some well chosen local restaurants for — you would have guessed it — traditional Tuscan food. At one place we got a very simple snack: Cecina. It’s made of only a…

Cooking

2 min read

Cecina recipe
Cecina recipe
Cooking

2 min read


Sep 22, 2020

nodejs ≠ node

In a bit older project we use theautoprefixer-rails gem (and not webpacker yet). After the version 10 update I saw following errors appear on the CI: ActionView::Template::Error: Autoprefixer doesn’t support Node v8.10.0. Update it. I didn’t understand how this could happen. We use NVM to automatically install and configure node…

Rails

1 min read

Rails

1 min read


Sep 14, 2020

Don’t prefer `let!` over `let`

This is an answer to the blog post of Jason Swett about the difference of let and let! in RSpec. I felt that it needs some clarification from an RSpec fan and heavy let-user. let!(…){…} is actually identical to before { let(…) { … } }. So I agree that…

Rspec

2 min read

Rspec

2 min read


Jun 30, 2020

Comments in Rails migrations

When (not “if”) your database design gets messy, other developers have a hard time to understand methods like this: def full_address "#{address} #{street_number}".strip end In the case of a Rails project I’d go to db/schema.rb to understand a bit better what’s going on. I’d be really glad if someone was thoughtful enough to put a comment there. While you cannot add Ruby comments directly to db/schema.rb without them being wiped each time the file is automatically regenerated, it is possible to add database comments. Since Rails 5, you can do this also via a migration helper method called change_column_comment:

Ruby

1 min read

Comments in Rails migrations
Comments in Rails migrations
Ruby

1 min read


Apr 30, 2020

Better Appsignal logs for Her

Her is a Ruby gem which maps REST resources to Ruby objects. We use it to conveniently consume APIs. Appsignal on the other hand is a software monitoring service. We use the Ruby integration to log slow requests in our Rails app. So each time Her makes a request to…

Ruby

2 min read

Better Appsignal logs for Her
Better Appsignal logs for Her
Ruby

2 min read


Mar 30, 2020

RSpec is_anticipated helper

This is about a little helper method called is_anticipated which complements is_expected — a trial to make RSpec even nicer. RSpec is a testing framework for Ruby. It has a long history and it’s incredibly powerful. For tests which have a lot of context switches you may use the one-liner…

Rspec

2 min read

RSpec is_anticipated helper
RSpec is_anticipated helper
Rspec

2 min read


Dec 11, 2019

Moving faster than light

Two not totally unrelated thought experiments — I’m neither a physicist nor very close to professional natural sciences. But I think a lot about random stuff… Experiment 1— Scissors Imagine your holding scissors in your hand. When you’re closing them, the point of intersection accelerates towards the tips. Let’s assume you’d pinch something between the two blades (which cannot get…

Physics

2 min read

Moving faster than light
Moving faster than light
Physics

2 min read


Dec 11, 2019

Why not move everything to virtuality?

I recently read the AI Revolution Series and the Elon Musk Series on WaitButWhy. All a bit long-termed, isn’t it? The series The AI series makes us afraid of the Great Filter and the Elon Musk series sheds some light on what he is doing about it. Elon sees this Great Filter…

Elon Musk

2 min read

Why not move everything to virtuality?
Why not move everything to virtuality?
Elon Musk

2 min read

Josua Schmid

Josua Schmid

16 Followers

I engineer software and craft beer, or the other way around. Find my old blog here: https://web.archive.org/web/20181108025110/http://blog.schmijos.ch/

Following
  • Nicole Schmidlin

    Nicole Schmidlin

  • Lucas Bazemore

    Lucas Bazemore

  • Janis Leuenberger

    Janis Leuenberger

  • Alessandro Rodi

    Alessandro Rodi

  • Philip Breuer

    Philip Breuer

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech