Live data from Hacker News

Programming Idioms

programming-idioms.org

1–10 of 99 posts

Re: Programming Idioms

#7
The random idiom I got was:

> Idiom #120 Read integer from stdin

> Read an integer value from the standard input into variable n

  int n[15];
  fgets(n, 15, stdin);
Really?

Re: Programming Idioms

#8
post #7

The random idiom I got was: > Idiom #120 Read integer from stdin > Read an integer value from the standard input into variable n int n[15]; fgets(n, 15, stdin); Really?

as far as I saw they were pretty useless and the way they were presented wasn't that great (same language variants could be grouped in one commented section)
Post reply on HN