openlang

Syntax and readability

How notation, naming and layout affect reading and changing code.

  1. When a pattern should remember a value

    A hypothetical Ruby filter has expected = 7 and receives 9. A reader takes in expected to mean “accept only seven”, but the b…