News for hackers. Stuff that matters.
Re:Codersumo - Challenge your inner sumo coder. by no_news_is on Monday November 26, 2012 @12:09PM (#4832803)
Adding "/correct" to your submitted solution bypasses any further checking.

For instance, without entering any changes, I got: http://codersumo.com/solutions/Id1SOh

[Not there yet. Your solution is not correct. Try again!]

Then, going to: http://codersumo.com/solutions/Id1SOh/correct gives a welcome page.

Re:Codersumo - Challenge your inner sumo coder. by lifebeyondfife on Monday November 26, 2012 @10:33AM (#4832337)
Pitching a slow ball just begging to be hit out of the park. Nice hook ;)

The interesting thing for me was which language to do it in. I hovered over JavaScript and Python before finally opting to do it in "safe" Java... a language I haven't programmed in for ten years but whose C-style syntax I could write in my sleep.

Attempting challenges could be helpful for keeping me on my toes in other languages.

Re:Codersumo - Challenge your inner sumo coder. by polarcuke on Monday November 26, 2012 @10:52AM (#4832436)
It seems like sites like this are becoming more popular, or at least the idea of them is. This is the second one I've seen recently, the other is http://www.codewa.rs/, this one looks interesting since it's for more languages than just javascript. Regardless it defiantly looks like fun, can't wait till the real version is released.
Re:Codersumo - Challenge your inner sumo coder. by sarhus on Monday November 26, 2012 @11:42AM (#4832675)
It would be possible to add Perl and Clojure to the list of supported languages, would that be interesting?
Re:Codersumo - Challenge your inner sumo coder. by mediocregopher on Monday November 26, 2012 @01:15PM (#4833104)
Clojure would be great! It's an awesome language with a great community behind it, it would be awesome to see it get more traction and start making it into more challenge sites like this one.
Re:Codersumo - Challenge your inner sumo coder. by thound on Monday November 26, 2012 @09:26AM (#4832012)
Looking forward to its launch! First challenge is easy, indeed, but I guess there will be much more difficult ones in the real competitions. Well, perhaps you could have different difficulty levels... and from what I see know, it looks like you are already moving in that direction
Re:Codersumo - Challenge your inner sumo coder. by davman on Monday November 26, 2012 @10:10AM (#4832219)
Looks like you've included your /assets/application-<hash>.js on every page, not just the homepage. This makes ACE throw errors because you don't have an element with an ID of "editor" on every page as well.

Hope this helps! :)

Re:Codersumo - Challenge your inner sumo coder. by sarhus on Monday November 26, 2012 @10:14AM (#4832250)
Oh! ok, thanks! need to have a look at it.
Re:Codersumo - Challenge your inner sumo coder. by eloisant on Monday November 26, 2012 @10:37AM (#4832350)
A for in Scala? That's ridiculous!

That's more like this: http://alan.dipert.org/post/172774481/fizzbuzz-in-scala-and-...

Re:Codersumo - Challenge your inner sumo coder. by ezl on Monday November 26, 2012 @11:08AM (#4832512)
just for giggles, this is a valid solution:

    print """1
    2
    Fizz
    4
    Buzz
    Fizz
    7
    ...
    94
    Buzz
    Fizz
    97
    98
    Fizz
    Buzz"""
Re:Codersumo - Challenge your inner sumo coder. by lsiebert on Monday November 26, 2012 @10:23PM (#4835455)
You know, I wonder if the massive failure of people trying to do fizzbuzz getting reported widely has lead people to memorize how to do it.
Re:Codersumo - Challenge your inner sumo coder. by boothead on Monday November 26, 2012 @11:34AM (#4832628)
There's a bug in the code submission, it didn't like <> in haskell, replacing it with `mappend` was fine
Re:Codersumo - Challenge your inner sumo coder. by sarhus on Monday November 26, 2012 @11:39AM (#4832654)
thanks for reporting that
Re:Codersumo - Challenge your inner sumo coder. by epaga on Monday November 26, 2012 @09:21AM (#4831993)
I like the peer review idea - looking forward to getting an email to see what you guys are up to!
Re:Codersumo - Challenge your inner sumo coder. by anons2011 on Monday November 26, 2012 @10:11AM (#4832227)
Great! First one done and signed up, was looking for something like this to improve.
Re:Codersumo - Challenge your inner sumo coder. by Zanyinj on Monday November 26, 2012 @10:14AM (#4832249)
Looks lovely:) Interested in seeing what's next, two thumbs up!
Re:Codersumo - Challenge your inner sumo coder. by toonse on Monday November 26, 2012 @02:02PM (#4833365)
C/C++ would be a good addition.
Re:Codersumo - Challenge your inner sumo coder. by ilanco on Monday November 26, 2012 @09:19AM (#4831982)
First challenge is too easy.
Re:Codersumo - Challenge your inner sumo coder. by maglob on Monday November 26, 2012 @11:29AM (#4832604)
If something is too easy to be interesting, find ways to make it more interesting.

Like, after the naive solution try without if statement, then without switch statement, and so on, until you are eventually left with just a print statement (+ given for loop) :)

Re:Codersumo - Challenge your inner sumo coder. by pablobm on Monday November 26, 2012 @09:26AM (#4832014)
I don't really know what direction the site will take, but I think you are missing the point there.

The FizzBuzz test might be very easy, but you are assuming that these challenges will be for people of your own skill level. Probably the site will want to cater for a wider audience, from beginner to advanced, and FizzBuzz provides a good starting point for both.

And anyway, we have all read enough about FizzBuzz to know that even "experienced" "professionals" can fail spectacularly at it.

Re:Codersumo - Challenge your inner sumo coder. by Ohadr on Monday November 26, 2012 @09:25AM (#4832005)
Depends on what you want it to achieve. If you want to reach out to people with a minimum experience in coding I think it does a great job.

I was expecting some kind of code-golf mark for that challenge though. There are many ways to solve it.

Re:Codersumo - Challenge your inner sumo coder. by rgonzalez on Monday November 26, 2012 @04:20PM (#4834084)
Is meant as a hook. And the most important part is that you complete it, that's the kind of validation they are after. But all feedback is good, so I am sure they'll have harder challenges soon.
Re:Codersumo - Challenge your inner sumo coder. by Cthulhu_ on Monday November 26, 2012 @10:29AM (#4832315)
Depends. Apparently, 80%* of applicants can't do fizzbuzz right.

*: random figure

Re:Codersumo - Challenge your inner sumo coder. by phragg on Monday November 26, 2012 @10:52AM (#4832431)
Try it in all the languages.
Re:Codersumo - Challenge your inner sumo coder. by rgonzalez on Monday November 26, 2012 @04:18PM (#4834071)
Good idea, that's probably the best way to make the most out of this simple challenge.
Re:Codersumo - Challenge your inner sumo coder. by honigbeutler on Monday November 26, 2012 @09:21AM (#4831994)
agreed
Re:Codersumo - Challenge your inner sumo coder. by lsiebert on Monday November 26, 2012 @10:22PM (#4835450)
No C, no Perl.