serhii
barseek.me
serhii
@barseek.me
"ruby" > "english"
=> true
May 21, 2025 at 10:24 AM
Reposted by serhii
please don't serialize and deserialize Canada too much, it's making us very dizzy
May 10, 2025 at 9:55 AM
I like rails’ transition from devise being a standard to a template based auth becoming one. It both allows beginners to understand how the auth works as well as reduces the effort required to customize anything
April 25, 2025 at 2:27 PM
haven’t tried it yet, but I imagine it would allow to finally have some sort of a component system in a plain rails app
March 21, 2025 at 9:34 AM
map_flat would sound(to me) like mapping over something flat. It might be a professional deformation both from years as a math student and years as a ruby programmer, but I think statistically flat_map would make more sense to people. Would be interesting to see a poll of newcomers :)
March 12, 2025 at 3:26 PM
map_and_flatten would be better conceptually, but that’s not very concise and I think math being a language made for expressing those manipulations(among other things) is the most natural way to go about it. If there was a decently concise way to say map_and_flatten, I think that would be best
March 12, 2025 at 3:21 PM
I always thought about it as function composition and I think it makes sense. Even though ruby is object oriented it does have quite a lot of functional lang features, I always thought of flat_map as one of those data manipulation functions. In that case composition notation is the only right one
March 12, 2025 at 10:27 AM
save
save
save
save
works
February 22, 2025 at 8:56 PM
elixir also has a term()(or any()) which includes nil, but you can also sometimes see term() | nil, which I think is more informative, although mean the same thing
February 16, 2025 at 7:33 AM
httpie
January 22, 2025 at 10:13 PM
I think that’d be great, but if that doesn’t work then `Literal::Failure(ArgumentError)` sounds good 👍
December 14, 2024 at 7:20 PM