Skip to content

Comment on APL – a Glimpse of Heaven (2006)parent

Comments

Of course you wouldn't write it all out like that in any programming language. But instead of writing code like this:

  y = a * x + b
You could write code like this:
  height = slope * run + ground
It may not be helpful to write out simple math using colloquial language, but it can be helpful to future maintainers if your variables have meaningful names. Calling it "a variable" instead of "a" is not useful, but calling it "slope" can be.
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.