Neil Shweky (SWE @ Chariot) Shino Kouda No, here is a good explanation of `&:` syntax honeybadger.io/blog/how-ruby-…
Shino Kouda Even writing the guide is challenging
discuss.rubyonrails.org/t/guide-to-rai…
Shino Kouda If you use the slice method in Ruby its actually substantially faster than using the reverse method.
Shino Kouda I always try to write beginners friendly, I hope my blog can help
codeando.dev
Shino Kouda u-case by Rodrigo Serradura is pretty impressive as it makes your app really SOLID.
github.com/serradura/u-ca…
Shino Kouda Maybe watching this repo: github.com/gramantin/awes…. Also subscribing to Ruby Radar :)
Shino Kouda My solution is 'One service per action'. Under each service, you can break down responsibilities with any numbers of POROs you like. github.com/hoppergee/soli…
Shino Kouda Nice read.
Minor observation, there is a typo in the module declaration 'Repaire' i.e. extra 'e'
Also, what are your thoughts on 'Composition vs Inheritance'?
thoughtbot.com/blog/reusable-…
ERB to Phlex converter by Marco Roth, Shino Kouda talks about `app` and `helper` methods in the console, a fantastic article with Turbo's 7.2.0 new features, and more in this week's @shortruby newsletter 💪
Go subscribe if you haven't yet ✌️
#rubyonrails #newsletter
Shino Kouda Transaction + pessimistic locking would be my approach here. See the example from Rails API itself. Also for financial stuff it’s err in favor of the customer. So ensure that transactions don’t get double booked etc.
Shino Kouda This habit is reinforced when using Stimulus because of how target names are used in the Stimulus controllers.