Noel Rappin
- 12mo ·
-
Public·
-
ruby.social
One thing I really liked in Victor Shepelev’s discussion of Ruby's single-line method syntax (https://zverok.space/blog/2023-12-01-syntax-sugar5-endless-methods.html) is the idea of using the language structures to suggest the relative importance of code -- so one-liner syntax is used for boilerplate or very simple calculated attributes and the syntax of the language helps you say "this isn't the part you need to focus on”.