DEV Community

Discussion on: The shortest way to conditional insert properties into an object literal

Collapse
 
andychiare profile image
Andrea Chiarelli • Edited

I don't criticize the use of idiomatic code (I often use it, too) but the emphasis on the shortest way.
It seems to encourage the writing of compact or idiomatic code at any cost, and it is not always the best choice.
As with natural language, if you use very strict jargon, you reduce the number of people who are able to understand it with little effort.

Thread Thread
 
jfet97 profile image
Andrea Simone Costa

The shortest way means only one thing: fewer characters are required.
The second part you deduced is your personal interpretation of the title, which obviously does not reflect my thinking at all.

Thread Thread
 
andychiare profile image
Andrea Chiarelli

Maybe you're right. Sorry for any misunderstanding.

Thread Thread
 
jfet97 profile image
Andrea Simone Costa

No problems 😃!

See you at the DevFest, with peaceful intentions of course 😝

Thread Thread
 
andychiare profile image
Andrea Chiarelli

I've never had any non-peaceful intentions :-)
See you at the DevFest!