Looks like you've included your /assets/application- .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! :)
Codersumo - Challenge your inner sumo coder.
11–20 of 28 posts
Re: Codersumo - Challenge your inner sumo coder.
#12First challenge is too easy.
*: random figure
Re: Codersumo - Challenge your inner sumo coder.
#13The 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.
#14That's more like this: http://alan.dipert.org/post/172774481/fizzbuzz-in-scala-and-...
Re: Codersumo - Challenge your inner sumo coder.
#15First challenge is too easy.
Re: Codersumo - Challenge your inner sumo coder.
#16Re: Codersumo - Challenge your inner sumo coder.
#17 print """1
2
Fizz
4
Buzz
Fizz
7
...
94
Buzz
Fizz
97
98
Fizz
Buzz"""Re: Codersumo - Challenge your inner sumo coder.
#18First challenge is too easy.
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.
#19Re: Codersumo - Challenge your inner sumo coder.
#20There's a bug in the code submission, it didn't like in haskell, replacing it with `mappend` was fine