4 ms·
I have the exact opposite experience. I can't think of anything I got more sick of than every freaking method in every rails project having `params = {}` where
by sanderjd 5y ago
I have the exact opposite experience. I can't think of anything I got more sick of than every freaking method in every rails project having `params = {}` where you have no idea what keys are required or expected or ignored. Easily 90% of these should have been named structures instead of these arbitrary data grab bags.
- bcrosby95 5y agoIf you had a generic params map, you would likely destructure it and the keys would be obvious. Destructuring in Clojure also gives you a way to specify defaults for each key right there.
- MrBuddyCasino 5y agoAgree that "map oriented" code bases are pretty bad. Always an unmaintainable mess, usually developed by single dev, painful to refactor. Seen this with Groovy back when some people thought this language had any merit.