3 ms·
I don't mean method definitions. I mean method invocations.
by paulryanrogers 2mo ago
I don't mean method definitions. I mean method invocations.
- bluerooibos 2mo agoI see. In almost 10 years of using Ruby I can't say that ever bothered me.
- pmontra 2mo agoThe guidelines I remember are no parentheses for DSLs, e.g. the Rails validation methods or the associations, and parentheses for the other methods.
- digitaltrees 2mo agoBut you can literally inspect and interrogate objects. You can ask what methods exist. You can even make new methods at run time.
- paulryanrogers 2mo agoRight. And that's the issue. I want to read at a glance, without having to ask tools. Monkey patching and lack of parentheses means dropping into a new codebase is like wading into a ocean of possibilities with every file.
- digitaltrees 2mo agoThe community does generally document monkey patching and meta programming constructs. All other code tends to be self documenting. That’s all I am saying.
- paulryanrogers 2mo agoPerhaps I just didn't write enough Ruby. It all felt very hard to grok for the time I spent with it. Whereas other languages, even quite obscure ones, felt more parsable to me.