syntactic sugar:

Follow

@codesections when helps to avoid verbosity or boilerplate it's definitely likeable. But there's from sugars to sugars, some are good having controll of them and no excess.

Case in point IMO:
✅ Collections vs loops
a.each Vs for(i=0; I < a.size; i++)
✅ Abbreviation of methods
a + b Vs a.concat(b)
❌ Use mnemonics
{ |e, x| e.foo- x.bar } vs { _1.foo - _2.bar }
❌ Symbols vs methods
e.call('foo') vs e['foo']

So, when your overall code looks cryptic maybe an unpleasant experience instead of help

Sign in to participate in the conversation
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.