4 ms·
I've been thinking a lot about this lately myself. Where does one go to read "really good" source code?
by thisisnotmyname 18y ago
I've been thinking a lot about this lately myself. Where does one go to read "really good" source code?
- kalid 18y agoGreat question, I'd like to know too. Sometimes I poke around popular open source projects, like the rails source. Here's how they implemented the syntatic sugar for things like "1.month.from_now": http://github.com/rails/rails/tree/master/activesupport/lib/active_support/core_ext/numeric/time.rb http://github.com/rails/rails/tree/master/activesupport/lib/... I recently found http://refactormycode.com/ http://refactormycode.com/ and it looks interesting for learning, though not comprehensive. Sometimes it's nice to see the "before and after".
- andreyf 18y agoProgramming Pearls, by Jon Bentley: http://www.amazon.com/Programming-Pearls-2nd-ACM-Press/dp/0201657880 http://www.amazon.com/Programming-Pearls-2nd-ACM-Press/dp/02...