News for hackers. Stuff that matters.
Re:"Useless Ruby sugar": Pattern matching (Pt. 1) by ecshafer on Friday October 20, 2023 @05:18PM (#37961672)
I also work at the small mom and pop e-commerce site, and i havent seen it being considered controversial anywhere. And once people see its benefits i think theve been picking it up. Just this week we had a PR that it serioisly reduced the code by 30%

Awesome talk at rails world btw.

Re:"Useless Ruby sugar": Pattern matching (Pt. 1) by tenderlove on Friday October 20, 2023 @05:42PM (#37961887)
Thank you!

Ya, I really enjoy pattern matching. I think new language features just take a long time to percolate through the community. I remember when `->` was controversial, but that's the only way I write lambdas today. :D