Re:Where is Ruby Headed in 2021?
by JohnBooty on Friday November 19, 2021 @12:08AM
(#29274028)
Those are really good counterexamples and I love your points.
However... just kidding, there's no "however." Great reply.
You can get away with that if you're writing
something for immediate delivery,
I've worked on some big Rails monoliths and this just wasn't an issue very often.
But as you say, I think library code is another story.
Incidentally, whether library or application code, I've found that keyword arguments with well-chosen names have reduced this problem even further. It's not clear that `do_something("blue")` is incorrect, but `do_something(user_age: "blue")` is self-evidently bad.
However... just kidding, there's no "however." Great reply.
I've worked on some big Rails monoliths and this just wasn't an issue very often.But as you say, I think library code is another story.
Incidentally, whether library or application code, I've found that keyword arguments with well-chosen names have reduced this problem even further. It's not clear that `do_something("blue")` is incorrect, but `do_something(user_age: "blue")` is self-evidently bad.