Live data from Hacker News

Top Things That Annoy Programmers

kevinwilliampang.com

61–62 of 62 posts

Re: Top Things That Annoy Programmers

#61

Earlier quoted context omitted.

What's an example of an appropriate single-char variable name, in your opinion?

x, as in "f x = x + 2". What else are you going to call it? "addend"?

f = (+ 2)

(I'm not a huge fan of point-free, I'm just being facetious ;)

Re: Top Things That Annoy Programmers

#62

Earlier quoted context omitted.

What's an example of an appropriate single-char variable name, in your opinion?

If you are working in finance, you might use common single letter variables, for example if you are creating a black-scholes function. E.g. r = interest rate, etc...

Better to use 'rate' or 'irate'.
Post reply on HN