Re:Reddit clone in 60 minutes and 4 lines of C
by wmf on Friday February 05, 2010 @07:05PM
(#1105332)
OK, can we officially end the "_ in _ minutes and _ lines" meme now? While we're at it, let's close out the "check out my startup created in _ hours and $_".
Re:Reddit clone in 60 minutes and 4 lines of C
by jackowayed on Friday February 05, 2010 @08:33PM
(#1105489)
Well, I think/hope that he was sort of making fun of the "in n lines of code" part by putting all his code, besides the imports, on 1 line. But yeah, I agree.
Re:Reddit clone in 60 minutes and 4 lines of C
by KirinDave on Friday February 05, 2010 @07:33PM
(#1105381)
It's kind of a bummer that people feel that these endeavors are worth satire. While the titles may be a bit pithy and perhaps misleading, these X in Y lines tend to be really interesting reading, and let you glimpse into someone else's domain expertise.
It's too bad they didn't just say 210 lines of C and still show it. I would have still checked it out, and been interested.
Re:Reddit clone in 60 minutes and 4 lines of C
by biotech on Friday February 05, 2010 @08:52PM
(#1105521)
Well, if you can do it in C, and I can see your solution, and it works, then I can do it in a line of perl. But I didn't test his code, so I don't know if this works:
Re:Reddit clone in 60 minutes and 4 lines of C
by pyre on Saturday February 06, 2010 @02:37AM
(#1105974)
I think that point was to parody all these "X programmed in Y lines of code, but without all the 'hard' stuff like load-balancing, replication, optimized SQL queries that allow it to scale, etc; that's all too 'hard' so I'll do just the easy stuff and then claim that my final product is exactly the same as X"
Re:Reddit clone in 60 minutes and 4 lines of C
by telemachos on Friday February 05, 2010 @07:00PM
(#1105326)
I'm not sure why I don't just quit while I'm behind, but what version of OSX and gcc did you build it with? I can't get it even to compile (10.5.8, gcc version 4.0.1).
Re:Reddit clone in 60 minutes and 4 lines of C
by JeremyBanks on Friday February 05, 2010 @06:44PM
(#1105294)
Is this satire? If not: You know, not that it would mean much anyway but it really doesn't count if you just delete all of the line breaks 'cause you're using a language that doesn't require them.
Re:Reddit clone in 60 minutes and 4 lines of C
by tdmackey on Friday February 05, 2010 @07:06PM
(#1105336)
on proggit there has been a recent fad to reimplement reddit in X lines of Y in Z minutes where X and Z are minimized and it has devolved into a satire, yes.
It's too bad they didn't just say 210 lines of C and still show it. I would have still checked it out, and been interested.
duh.
Liked the joke :), what in all these "n lines" codes is missing is lot of things like - filtering (bad words), scaling, backup, etc.
All we need now is for someone to do it in 1 line of Perl.
http://gist.github.com/295032
real 0m14.316s
user 0m0.496s
sys 0m0.411s
new user creation is broken. new subreddit creation is broken. comments are broken. popular/new/controversial/saved is missing.
search is good though. rimshot
Cute though.
We lispers can express any program in a single line. Some prefer that style because it brings out all the parentheses.
All of this is possible because code is data.
Naah, then you'd say that defining a macro for a semicolon is cheating :)
I think that's pretty much a given.
"X clone in x minutes and x lines of x."
Bravo on your new "startup".