The Nature of Idioms in Programing Languages

By Xah Lee. Date: . Last updated: .

programing history of the day: the idiom craze, is started by perl and Larry Wall, from there we have “pythonic” fak.

there are 2 types of idioms: ① that makes algorithmic difference. ② not.

Only ① 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.

g+ discussion https://plus.google.com/+XahLee/posts/FZDgpL1PsSW

Programing Idioms and Style

  1. Programing Elegance vs Simplicity
  2. Why Idioms Are Bad
  3. The Nature of Idioms in Programing Languages
  4. Hashtable as Switch Statement
  5. Logic Operator as Control Flow

If you have a question, put $5 at patreon and message me.