Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
I've stopped using code coverage tools a number of years ago as the effort to maintain a test suite with 100% code coverage was quite significant, but nowadays the coverage report can be a useful tool when working with LLMs.
-
I've noticed that many Ruby developers tend to suffer from "classitis," as coined by John Ousterhout in his "A Philosophy of Software Design," where there is an explosion of shallow modules (or, in our case, classes) instead of having fewer deep modules.
-
One of the things I really enjoy about Ruby on Rails is that it has a lot of tiny conveniences that can speed up your workflow a lot.
-
I've found that the best way to set up Posgres for local development is via Docker, since it has some clear benefits over using system packages on Windows (via WSL2) or Linux.
-
I've recently seen a code sample about working with Stripe webhooks in Rails applications and I've noticed the following code in the controller: class StripeController < ApplicationController skip_before_action :verify_authenticity_token, only: [ :webho…
-
Instance variables (or instance attributes) in Ruby are prefixed with an @ sign: class Person def initialize(salutation: nil, first_name:, last_name:) @salutation = salutation @first_name = first_name @last_name = last_name end def name