Within an hour UseTheSource was born. UseTheSource is based on the same Arc source code that runs Hacker News, with a few special modifications. Readers are invited to submit examples of interesting code, algorithms or solutions to problems. The site uses the familiar voting metaphor seen on many social news sites, and includes special handling of source code: there's automatic syntax highlighting for a wide variety of languages.
The site is a complement to The Daily WTF, it highlights the high points, not the lows, of programming and problem solving skill. It's not a Q&A site like O'Reilly Answers or StackOverflow, it's a place to show off great code. And I'm drawn to good code because I look at my own efforts and think 'Yuck, you could have done better there, John'. I think it's very beneficial to see the good stuff and there's always something new to learn.
O'Reilly kindly offered to give five copies of the book Beautiful Code to UseTheSource readers and I set up a simple competition: join UseTheSource and submit a story to be entered. Early this Monday morning I drew the five winners.
The five items submitted to UseTheSource were:
- A Succinct Intro to Creating Recursive Descent Parsers (in Ruby)
- Memoization explained (in Perl)
- A Perfect Maze (a discussion of maze generation by depth-first search)
- Essential Tools For .NET Development
- Graphite vs Harfbuzz rendering in Linux: Do smartfonts matter?
The last one is slightly off-topic, but it's early days for UseTheSource and I'll let the community guide what's interesting and what's not.
Whether you find those submissions beautiful or not is up to you, and I'd invite you to come to UseTheSource and submit code you find fantastic, vote on others' submissions and take part in the conversations.