News for hackers. Stuff that matters.
Re:Reddit Clone in 10 minutes and 91 lines of Clojure by jrockway on Tuesday February 02, 2010 @03:58PM (#1096087)
Exactly. A Reddit frontpage for 1 user and 10 articles should be about 90 lines of code.
Re:Reddit Clone in 10 minutes and 91 lines of Clojure by icey on Tuesday February 02, 2010 @04:01PM (#1096107)
I don't understand what you mean by "Exactly."

(I'm not trying to be snarky, I just seriously feel like I've missed the point)

Re:Reddit Clone in 10 minutes and 91 lines of Clojure by jpeterson on Tuesday February 02, 2010 @04:13PM (#1096136)
I think the point is that replicating pretty much any site is trivially easy in any language if you don't have to worry about query performance, cacheing, scaling, etc.
Re:Reddit Clone in 10 minutes and 91 lines of Clojure by icey on Tuesday February 02, 2010 @04:17PM (#1096142)
Ah, that makes sense.

I didn't really see this article as being interesting from the "oh look, a reddit!" angle. I thought it was a good article in that it showed how to do a lot of things in Clojure: Java interop, a basic Compojure use case, and deployment with Leinengen.

Re:Reddit Clone in 10 minutes and 91 lines of Clojure by inmygarage on Tuesday February 02, 2010 @04:23PM (#1096168)
This discussion reminds me of Fred Wilson's article about bit.ly "That's only Ten Lines of Code"

http://www.avc.com/a_vc/2009/03/thats-only-ten-lines-of-code...

Sure, you can replicate lots of sites but to me Reddit wasn't great because of the tech, it was because they had built something really zeitgeisty that people liked.

Re:Reddit Clone in 10 minutes and 91 lines of Clojure by benologist on Tuesday February 02, 2010 @04:53PM (#1096272)
Not to mention the hard part ... building a community.
Re:Reddit Clone in 10 minutes and 91 lines of Clojure by jules on Tuesday February 02, 2010 @05:57PM (#1096462)
And features such as comments.
Re:Reddit Clone in 10 minutes and 91 lines of Clojure by ThinkWriteMute on Tuesday February 02, 2010 @04:21PM (#1096158)
Slightly on topic:

How would you attack the "query performance, cacheing, scaling, etc" problems?

Re:Reddit Clone in 10 minutes and 91 lines of Clojure by lucifer on Tuesday February 02, 2010 @05:57PM (#1096458)
Re:Reddit Clone in 10 minutes and 91 lines of Clojure by jrockway on Tuesday February 02, 2010 @04:23PM (#1096163)
What I meant to say is that it's a simple problem, and should be about 90 lines of code.
Re:Reddit Clone in 10 minutes and 91 lines of Clojure by lbj on Tuesday February 02, 2010 @04:10PM (#1096127)
Actually this will serve as many users as your system can handle.
Re:Reddit Clone in 10 minutes and 91 lines of Clojure by abstractbill on Tuesday February 02, 2010 @04:40PM (#1096223)
Different sense of the word "user".
Re:Reddit Clone in 10 minutes and 91 lines of Clojure by jacquesm on Tuesday February 02, 2010 @08:07PM (#1096750)
Bestinclass.dk is always hyping clojure and actually does more damage than good. Remember the 'clojure vs python', 'clojure vs ruby' and 'clojure vs global warming' articles.

If you name your blog 'best in class' I think that sets that bar for the quality a bit higher than what is generally on display there.

Re:Reddit Clone in 10 minutes and 91 lines of Clojure by derefr on Tuesday February 02, 2010 @08:06PM (#1096748)
I think Reddit clones would be a lot more commonplace and popular if they had a name other than "Reddit clones"; it's a simple site architecture in retrospect, analogous to a blog or a wiki. They are all categories of web applications that have interactive elements, but also act as websites for those who don't care to participate.

Now, imagine if blogs had been called "Wordpress clones", or wikis had been known as "Wikipedia clones"? [Yes, I know, not the originators of the species, but surely the ones the most people are familiar with.] I don't think they'd have nearly the traction on the web that they do now, as the media wouldn't be caught dead talking about the "Wordpress clone usage and participation phenomenon" without being payed off. If there was a non-trademarked, one-to-two syllable name one could use to describe both Reddit and HN, I think we'd see the usage shoot up.

Re:Reddit Clone in 10 minutes and 91 lines of Clojure by jacquesm on Tuesday February 02, 2010 @08:08PM (#1096752)
Social bookmarking site?
Re:Reddit Clone in 10 minutes and 91 lines of Clojure by jokermatt999 on Wednesday February 03, 2010 @12:32AM (#1097151)
I think that's a little too broad of a category. That conveys the sharing of links, but not the voting and comments, which I feel are the defining features of reddit.
Re:Reddit Clone in 10 minutes and 91 lines of Clojure by sjs on Tuesday February 02, 2010 @10:04PM (#1096956)
maybe social web surfing? delicious is social bookmarking.

i guess it depends how one uses reddit though.

Re:Reddit Clone in 10 minutes and 91 lines of Clojure by hypermatt on Tuesday February 02, 2010 @04:42PM (#1096229)
News.Arc ? Isn't all of hacker news written in a lisp variant thats only a few hundred lines long?
Re:Reddit Clone in 10 minutes and 91 lines of Clojure by brianobush on Tuesday February 02, 2010 @07:23PM (#1096669)
and also suffers from scalability too. How many times have you accessed this site and got a connection error? Scalability and all that other work requires code.
Re:Reddit Clone in 10 minutes and 91 lines of Clojure by koningrobot on Wednesday February 03, 2010 @01:48AM (#1097231)
Looks like it contains an XSS bug in the way it reports errors.
Re:Reddit Clone in 10 minutes and 91 lines of Clojure by lurkinggrue on Tuesday February 02, 2010 @07:29PM (#1096689)
That seems to be missing a few features, like accounts.
Re:Reddit Clone in 10 minutes and 91 lines of Clojure by onewland on Tuesday February 02, 2010 @10:36PM (#1096987)
I wonder when this article format will bump against ridiculous limits.

"RabbitMQ clone in 4 lines of Go in 13 seconds".

Re:Reddit Clone in 10 minutes and 91 lines of Clojure by rickmode on Wednesday February 03, 2010 @04:04AM (#1097383)
Right on. And I can write a word processor in one mouse click. (OK maybe a double-click.)
Re:Reddit Clone in 10 minutes and 91 lines of Clojure by malkia on Tuesday February 02, 2010 @10:44PM (#1097002)
And he saves the data where? And he filters the bad words where? And he....
Re:Reddit Clone in 10 minutes and 91 lines of Clojure by philjackson on Wednesday February 03, 2010 @04:09AM (#1097392)
Ignore the 'Reddit clone' part and enjoy the code.
Re:Reddit Clone in 10 minutes and 91 lines of Clojure by samd on Tuesday February 02, 2010 @08:33PM (#1096797)
Proof that you can't build a great product with clever programming alone.