Context Let's say I am working on a project named "short-ruby" 😉 That project is currently located somewhere like /home/lucian/projects/short-ruby Let's say that I am currentl...
Context Let's say I am working on a project named "short-ruby" 😉 That project is currently located somewhere like /home/lucian/projects/short-ruby Let's say that I am currentl...
I read this article about DRY and this prompted me to write some thoughts about this. This was a very debated article about what is DRY and what it means to use it or not and th...
Imagine you are taking part in a coding competition. Let’s explore what it might look like. You found this contest online and registered to participate. On the day of the event,...
I shared this first as a thread on Twitter but I think I want to document it also here: https://twitter.com/lucianghinda/status/1518594459189104640 Courses and Trainings https...
If you just started to learn a programming language and web framework, here is my suggestion about what to work on: What project to work on Choose a successful SaaS product tha...
How do these things work? Have you ever wondered how the following code works? Specifically, how come the key will have another value than true or false. key = loaded_key || Ke...
Context You want to update the same column for multiple records in one query and set different values for each record. Example: class Car < ActiveRecord::Base # has attributes: ...
I was inspired to write this article by a question asked by Adrian Marin in the Twitter Ruby on Rails community and the responses I read there. https://twitter.com/adrianthedev/...
Context Let's say that you have two array of hashes: a = [ { initial: "a", email: "a@example.com" }, { email: "b@example.com", initial: "b" }, { ...
Context You need to design some routes with the following properties: you need to do some computation in the backend they are idempotent: every time you call the route with the...
You can also subscribe with RSS!