syntactic sugar:


@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| } vs { - }
❌ Symbols vs methods'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 is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.