News for hackers. Stuff that matters.
Re:DHH Ping Pong by paultannenbaum on Saturday March 15, 2014 @03:23PM (#7405897)
Did DHH actually agree to do this before you guys built this?

One thing that is not clear from your site, that I think should be, is that the code discussions need to happen over unconventional Rails design patterns. DHH was saying he was willing to ping pong on the original discussion thread over a design pattern in a submitted article that he thought was an unnecessary abstraction.

Re:DHH Ping Pong by nfm on Saturday March 15, 2014 @05:43PM (#7406601)
According to their blog post (https://netguru.co/blog/posts/code-ping-pong-with-dhh) DHH is in.
Re:DHH Ping Pong by Gracana on Saturday March 15, 2014 @04:24PM (#7406233)
I don't entirely know what's going on here, but I looked at the linked thread and dhh says twice that he would love to do code ping-pong.
Re:DHH Ping Pong by sadfnjksdf on Saturday March 15, 2014 @06:14PM (#7406727)
Re:DHH Ping Pong by madsheep on Sunday March 16, 2014 @05:27AM (#7408763)
He agreed :)
Re:DHH Ping Pong by joevandyk on Saturday March 15, 2014 @07:45PM (#7407049)
Under 80 lines is a problem.

Most of the designs that DHH doesn't like are from complicated applications that need to deviate from The Rails Way.

I built my e-commerce business with Rails/ActiveRecord back in 2006, when rails was at version 0.7.

For the first few years, I followed rails conventions religiously. There's a point where you have to outgrow them. And that legacy approach is a major pain now. Having a class that wraps a database table and contains all the functionality that accesses that table doesn't scale at a certain point.

But I'm not going to try to show those pains in under a couple hundred lines of code that someone can understand in an hour. Anything that can be compressed to that point doesn't need a complicated design.

Re:DHH Ping Pong by madsheep on Sunday March 16, 2014 @05:26AM (#7408761)
Do you think there is a line limit within you would be able to show said problems? How much would that be?
Re:DHH Ping Pong by g8oz on Saturday March 15, 2014 @03:50PM (#7406058)
Is this some passive aggressive shit?
Re:DHH Ping Pong by rschmitty on Saturday March 15, 2014 @06:29PM (#7406790)
As DHH offered to literally do some "code ping pong" I don't see that it is.

"If this is a poor example, pick a good example. I'll be happy to code ping pong you whatever example you choose." -DHH

HN comments are not exactly the best place to review code side by side. I'm glad he is participating and I'm looking forward to the comparisons

Re:DHH Ping Pong by wyclif on Saturday March 15, 2014 @07:00PM (#7406908)
Whatever do you mean? DHH said he'd like to do it. What do you think "passive aggressive" means?
Re:DHH Ping Pong by madsheep on Sunday March 16, 2014 @05:27AM (#7408764)
It's not.
Re:DHH Ping Pong by aeontech on Saturday March 15, 2014 @03:38PM (#7405993)
Are you just collecting gist submissions, or are you planning to provide some discussion infrastructure? If it's the latter, perhaps make it more open-ended so it can be used by everyone for reviews?
Re:DHH Ping Pong by hablahaha on Saturday March 15, 2014 @04:27PM (#7406250)
On my team, when we are sketching out new infastructure, we'll fork each other's gists, which while good, could probably be more elegant since the fork experience isn't as powerful in Gists as it is in Github compare view. Perhaps this is the beginning to a cool project for that. Would rather have a ping pong game though.
Re:DHH Ping Pong by jacobbijani on Saturday March 15, 2014 @07:16PM (#7406954)
The site says there will only be 5 "matches", so agreed: if the trial goes well you guys should consider expanding on this format.
Re:DHH Ping Pong by madsheep on Sunday March 16, 2014 @05:32AM (#7408781)
The plan is to collect the short gists and ask David to respond to the 5 best of them - he already agreed to do so. Once he responds we will publish the gists on the main page. There will be straight comparison of the code (left side the screen has the original gist and the right side has Davids version of the solution. You will be able to vote your preferred version, and comment underneath (with disqus.com)

Would that work as a basic infrastructure for discussion? Otherwise - how would you see it?

Re:DHH Ping Pong by antidaily on Saturday March 15, 2014 @04:16PM (#7406195)
This is really funny. Hope he's on board.
Re:DHH Ping Pong by filozynka on Saturday March 15, 2014 @07:06PM (#7406925)
Re:DHH Ping Pong by madsheep on Sunday March 16, 2014 @05:34AM (#7408786)
I can confirm - he is in.
Re:DHH Ping Pong by blister on Saturday March 15, 2014 @03:13PM (#7405837)
Link to the original discussion for the lazy: https://news.ycombinator.com/item?id=7335211
Re:DHH Ping Pong by filozynka on Saturday March 15, 2014 @02:16PM (#7405537)
<3 <3 <3