Whenever you open a piece of code try to find a place where you can describe how that class or that feature can be used by fellow developers. Focus on usage examples or use case...
Whenever you open a piece of code try to find a place where you can describe how that class or that feature can be used by fellow developers. Focus on usage examples or use case...
Practical ideas about how to stay up to date with the newest Ruby and Rails features while also working on your projects.
Today I wanted to achieve the following: Change the key for the parent resource when accessed in the nested resources # instead of /collections/:collection_id/entries # wanted ...
What is method gravity? What I call Method Gravity means for me: The bigger the method the more new lines of code will be added to it. I noticed this while working on various ...
A bit of (personal) history I learned Ruby, I think, around 2007, and back then, it was a language pushing boundaries for me. Before encountering Ruby, I worked with Java, C/C++...
This is primarily a response to a Reddit comment but I have encountered this line of pushback against short-hand syntax multiple times. Thus I think it is good to write it down ...
I like to use as much as possible the new features in Ruby. In this case, I will show how to take advantage of shorthand hash syntax whileThe on changing from instance variables...
Code Design Inertia: The code that will be written in the future will follow the design of the code already written. Inertia is stronger inside a file => the code added will f...
When thinking about testing, consider the following points: You are not writing tests only for yourself but also for other developers who might join your project. They might co...
If you want to freeze strings in Ruby there are at least two ways to do this: 1) Adding the magic comment at the beginning of the file # frozen_string_literal: true 2) Calling ...
You can also subscribe with RSS!