Lurker News
Preferably an elegant snippet rather than an entire (well engineered) codebase.

Comments (380) 116 threads

Earlier comments
gingerlime#
I personally really like ruby’s Array because it lets you pass anything and you can iterate over it:

  Array(nil).map ...
  Array(“string”).each ...
  Array([“a”, “b”]].select ...
  Array([]).reject ...
  ...
thedudeabides5#
for(int i=1;i<=10;i++){ doStuff(); }

Sounds trivial compared to the rest listed here, but for me it was just the first time I got a for loop to work in java.
Like, conceptually I knew programming was about getting machines to doStuff, but this was probably the first time I actually had a machine do something I asked of it directly. Well, that and Logo writer.
https://twitter.com/dosnostalgic/status/726236764759842817

Load more comments