The Nature of Idioms in Programing Languages (2015)
idiom is scar
An idiom is scar on the spot where programmer was injured by language.
from Kazimir Majorinc, 2013 http://kazimirmajorinc.blogspot.com/2013/05/epigram-on-idiom.html
programing history of the day: the idiom craze, is started by perl and Larry Wall, from there we have “pythonic” fuck.
there are 2 types of idioms: (1) that makes algorithmic difference. (2) not.
Only (1) matters. For example, in python, intead appending string ten thousand times, use a list and append to list then convert it to string.
programing idiom should be ban'd. Only allow those that have algorithmic impact.
programing idioms, as in natural human langs, are incomprehensible and local, with no universal and permanance advantage.
idioms, plays big part in group formation. You can discern outsiders by idiom. Hither is me, my clan. Thither is you. Part of survival instinct.
if your lang requires lots idiosyncratic idioms to write clear and efficient algorithms, your lang is bad.
google plus discussion https://plus.google.com/+XahLee/posts/FZDgpL1PsSW
Programing Idioms and Style
- Coding Style: Elegance vs Simplicity (2019)
- Coding Style: Concrete vs Abstract Code (2021)
- Coding Style: Why Idioms Are Bad (2012)
- The Nature of Idioms in Programing Languages (2015)
- Coding Style: Python Dictionary as Switch Statement (2013)
- Coding Style: Abuse of Logic Operators (Short-Circuit) as Control Flow (2015)