News for hackers. Stuff that matters.
Re:Runnable Wants To Become The “YouTube Of Code” by dorkrawk on Wednesday October 02, 2013 @04:41PM (#6485225)
This might be a minor nitpick, but it always bugs me when Ruby on Rails is listed as a language, particularly by people who should know better (developers). There's even a section for frameworks on the site. People searching for code snippets should be able to understand that Ruby is a language and Ruby on Rails is a framework.
Re:Runnable Wants To Become The “YouTube Of Code” by alex_c on Wednesday October 02, 2013 @04:47PM (#6485262)
Re:Runnable Wants To Become The “YouTube Of Code” by Scriptor on Wednesday October 02, 2013 @05:38PM (#6485566)
Just because it modifies the standard library classes doesn't make it a separate language in its own right. If you used Java but with a different implementation for, say, linked lists than the standard one you'd still be using Java.
Re:Runnable Wants To Become The “YouTube Of Code” by dangerlibrary on Thursday October 03, 2013 @10:11AM (#6488988)
Absolutely! Rails is written in Ruby and is run by the Ruby interpreter. No doubt about it. But if you dig in you find that pretty much every Ruby class (including the low-level ones) has been modified for use in Rails. In addition, a lot of Rails code is written in a purpose-built DSL. Rails has built-in DSLs for web routing, email sending/receiving, database queries, &c. You can split hairs and say that these are APIs and not real DSLs, but I think the point about dynamic languages blurring the lines is totally fair. You could implement the core Java spec in Ruby by modifying the base classes, and at some point you aren't writing Ruby any more.
Re:Runnable Wants To Become The “YouTube Of Code” by rrouse on Wednesday October 02, 2013 @05:11PM (#6485424)
It's pretty clear to me that those are extensions to the core class.
Re:Runnable Wants To Become The “YouTube Of Code” by ykumar6 on Wednesday October 02, 2013 @04:42PM (#6485238)
You are absolutely right! Thanks for the feedback
Re:Runnable Wants To Become The “YouTube Of Code” by Impossible on Wednesday October 02, 2013 @04:55PM (#6485320)
Their definition of "language" is pretty fuzzy. Node.js and Javascript are separate languages, and .NET is also included in the language section. The only actual programming languages under that tab right now are Javascript and PHP.
Re:Runnable Wants To Become The “YouTube Of Code” by ykumar6 on Wednesday October 02, 2013 @05:13PM (#6485432)
Thanks. Creating simple categories for the vast quantity of frameworks, languages, apis, etc out there is hard. We're hoping to get better at it as time progresses
Re:Runnable Wants To Become The “YouTube Of Code” by LandoCalrissian on Wednesday October 02, 2013 @04:59PM (#6485340)
I really like the idea, but holy hell the site design needs some work. There are a lot of areas that are overlapping, or rendered kind of funky. The mess of purple icons should just probably go. Also when you finally select a language, the list of projects is really hard to read.

Keep up the good work, it's a good idea, just need to push the design way more.

Re:Runnable Wants To Become The “YouTube Of Code” by robertfw on Wednesday October 02, 2013 @05:20PM (#6485480)
Absolutely - why o why do you have random purple icons taking up half the screen, pushing your content below the fold? Ditch em!

edit: Having browsed the rest of the thread I see this may be a bug. If it helps, I am using: Version 28.0.1500.71 Ubuntu 12.04 (28.0.1500.71-0ubuntu1.12.04.1)

Re:Runnable Wants To Become The “YouTube Of Code” by tjmehta on Wednesday October 02, 2013 @09:07PM (#6486489)
Thank you Robert! We have now resolved this issue now, turns out some of our servers didnt have the proper css file.
Re:Runnable Wants To Become The “YouTube Of Code” by tjmehta on Wednesday October 02, 2013 @09:06PM (#6486485)
Thank you Lando! We have now resolved this issue turns out some of our servers didnt have the proper css file.
Re:Runnable Wants To Become The “YouTube Of Code” by ykumar6 on Wednesday October 02, 2013 @05:01PM (#6485354)
Thanks for the feedback. What browser are you using?
Re:Runnable Wants To Become The “YouTube Of Code” by LandoCalrissian on Wednesday October 02, 2013 @05:21PM (#6485483)
Chrome Version 29.0.1547.76

Here is an album with some of the things I saw very quickly: http://imgur.com/a/54HrY

There are a lot strange alignment issues all over the place, so maybe pay some attention to that.

Again, don't get disheartened, the idea speaks way louder than the design.

Re:Runnable Wants To Become The “YouTube Of Code” by ykumar6 on Wednesday October 02, 2013 @05:26PM (#6485516)
Hey Guys, we just dumped our CDN cache. Is the issue resolved?
Re:Runnable Wants To Become The “YouTube Of Code” by aaront on Wednesday October 02, 2013 @05:23PM (#6485496)
Same issues here in Firefox 27.0a1 (2013-10-01) on Windows 8
Re:Runnable Wants To Become The “YouTube Of Code” by tjmehta on Wednesday October 02, 2013 @09:08PM (#6486500)
Sorry for the design problems earlier Aaron! We have now resolved this issue now, turns out some of our servers didn't have the proper css file.
Re:Runnable Wants To Become The “YouTube Of Code” by barbchavez on Wednesday October 02, 2013 @04:40PM (#6485219)
I love this site! Like someone mentioned on TC, it's a Stack Overflow meets JSFiddle, SqlFiddle, GitHub etc.

Would be interesting to see how they handle COMPLEX snippets / codebase like Web APIs, Delegates, events etc.

Re:Runnable Wants To Become The “YouTube Of Code” by ykumar6 on Wednesday October 02, 2013 @04:41PM (#6485228)
Thanks your your feedback!
Re:Runnable Wants To Become The “YouTube Of Code” by fleitz on Wednesday October 02, 2013 @05:21PM (#6485482)
I like the idea kinda of wish it was more tongue in cheek.

"Copypasta, the Old Spaghetti Factory of code"

On a slightly more serious note, if they are the youtube of code, how are they going to remove the xenophobia from the comments?

Re:Runnable Wants To Become The “YouTube Of Code” by NIL8 on Wednesday October 02, 2013 @04:40PM (#6485218)
Re:Runnable Wants To Become The “YouTube Of Code” by TylerE on Wednesday October 02, 2013 @04:48PM (#6485270)
Grr, no no no.

Whoever designed this is nuts...that black ajaxy loading screen crap on every page load is incredibly rage inducing.

Re:Runnable Wants To Become The “YouTube Of Code” by tjmehta on Wednesday October 02, 2013 @09:08PM (#6486497)
Sorry for the design problems earlier Tyler! We have now resolved this issue now, turns out some of our servers didn't have the proper css file.
Re:Runnable Wants To Become The “YouTube Of Code” by ykumar6 on Wednesday October 02, 2013 @04:50PM (#6485282)
You mean the page loader? Sorry to hear about that :(
Re:Runnable Wants To Become The “YouTube Of Code” by elwell on Wednesday October 02, 2013 @05:18PM (#6485470)
I like YouTube's page loading bar though.
Re:Runnable Wants To Become The “YouTube Of Code” by migusto on Wednesday October 02, 2013 @04:30PM (#6485137)
Works great but the site design needs some work. Am I supposed to see three rows of big purple icons at the top of the home page? I tried multiple browsers, looks a bit awkward and takes up half of my screen.
Re:Runnable Wants To Become The “YouTube Of Code” by ykumar6 on Wednesday October 02, 2013 @04:31PM (#6485147)
Hi, which browser are you using?
Re:Runnable Wants To Become The “YouTube Of Code” by migusto on Wednesday October 02, 2013 @04:38PM (#6485202)
I've tried in Chrome and IE9, looks the same either way for me:

http://i.imgur.com/EXI0kdY.png

Re:Runnable Wants To Become The “YouTube Of Code” by kungfooey on Wednesday October 02, 2013 @04:41PM (#6485231)
Seeing the same thing in Firefox 24.

http://d.pr/i/6uwO

Re:Runnable Wants To Become The “YouTube Of Code” by tjmehta on Wednesday October 02, 2013 @09:07PM (#6486491)
Thank you kungfooey! We have now resolved this issue now, turns out some of our servers didnt have the proper css file.
Re:Runnable Wants To Become The “YouTube Of Code” by ykumar6 on Wednesday October 02, 2013 @04:40PM (#6485216)
Thanks. We're really sorry to hear about this! Definitely not how the site should look, can you try it in Firefox?
Re:Runnable Wants To Become The “YouTube Of Code” by migusto on Wednesday October 02, 2013 @04:47PM (#6485263)
The first time I brought it up in Firefox I didn't see the icons. But maybe it was just a loading delay though because I see them now. Sorry to be a downer!
Re:Runnable Wants To Become The “YouTube Of Code” by tjmehta on Wednesday October 02, 2013 @09:07PM (#6486495)
Thank you migusto! We have now resolved this issue now, turns out some of our servers didnt have the proper css file.
Re:Runnable Wants To Become The “YouTube Of Code” by migusto on Thursday October 03, 2013 @02:55PM (#6491104)
Oh wow that's way better! Happy to help.
Re:Runnable Wants To Become The “YouTube Of Code” by ykumar6 on Wednesday October 02, 2013 @05:22PM (#6485486)
Founder of Runnable here. We've got some reports that the site isn't loading properly in some browsers. We're working to fix this now, and ask you to retry in an hour :) - Yash
Re:Runnable Wants To Become The “YouTube Of Code” by diziet on Wednesday October 02, 2013 @04:07PM (#6484948)
The way the terminal VM works is quite impressive, actually.
Re:Runnable Wants To Become The “YouTube Of Code” by ykumar6 on Wednesday October 02, 2013 @04:08PM (#6484954)
We're glad you liked it!
Re:Runnable Wants To Become The “YouTube Of Code” by pavs on Wednesday October 02, 2013 @05:14PM (#6485441)
I like the idea, but as quite a few people mentioned, the execution is really below par, esp the UI and not loading properly on chrome at all.
Re:Runnable Wants To Become The “YouTube Of Code” by terabytest on Wednesday October 02, 2013 @04:30PM (#6485139)
Nice, but looking at the paperclip rails example I really didn't understand where to look. The only file visible was the application controller, and the application wouldn't run because the migrations hadn't been executed.
Re:Runnable Wants To Become The “YouTube Of Code” by ykumar6 on Wednesday October 02, 2013 @04:33PM (#6485169)
Thanks for reporting this. We'll take a look!
Re:Runnable Wants To Become The “YouTube Of Code” by siscia on Wednesday October 02, 2013 @04:58PM (#6485331)
Those guys are terrible IMHO: https://news.ycombinator.com/item?id=6272093
Re:Runnable Wants To Become The “YouTube Of Code” by paulgb on Wednesday October 02, 2013 @05:08PM (#6485404)
Just because they didn't respond to your email? I don't follow.
Re:Runnable Wants To Become The “YouTube Of Code” by siscia on Wednesday October 02, 2013 @05:34PM (#6485549)
I don't think is the way to run any business, what I saw is just no respect and exploitation and for what 100 bucks ? Seriously ?
Re:Runnable Wants To Become The “YouTube Of Code” by gary__ on Wednesday October 02, 2013 @06:14PM (#6485778)
I think you need to gain some perspective. They just didn't respond to your email. It happens. Fwict, it was outside of the expected communication channels for proposals anyway. It would have been more respectful if they contacted you, I can understand your frustration waiting for the reply, but you've completely overreacted. IMO what's most unprofessional about the incident is you taking such a minor grievance to a public forum.
Re:Runnable Wants To Become The “YouTube Of Code” by paulgb on Wednesday October 02, 2013 @05:48PM (#6485618)
I don't see where they exploited you. I'm not familiar with how elance works but it sounds like you submitted a proposal and never heard back. That's pretty standard in my experience.
Re:Runnable Wants To Become The “YouTube Of Code” by rpicard on Wednesday October 02, 2013 @06:20PM (#6485819)
I don't quite see what part makes them terrible here. Could you elaborate a little on that? Is it just that they never got back to you?
Re:Runnable Wants To Become The “YouTube Of Code” by hpagey on Wednesday October 02, 2013 @04:51PM (#6485292)
When I read "youtube of code" I was expecting video recordings of developers coding sessions :P. But the current form works too.
Re:Runnable Wants To Become The “YouTube Of Code” by keenahn on Wednesday October 02, 2013 @04:39PM (#6485211)
I'm actually very excited about this as an education tool where you can actually learn by coding.
Re:Runnable Wants To Become The “YouTube Of Code” by dedicated on Wednesday October 02, 2013 @04:17PM (#6485034)
Great way to get around the work of setting up the environment to get straight into the API.
Re:Runnable Wants To Become The “YouTube Of Code” by avree on Wednesday October 02, 2013 @04:34PM (#6485176)
Congrats on the launch, guys!
Re:Runnable Wants To Become The “YouTube Of Code” by elwell on Wednesday October 02, 2013 @05:16PM (#6485454)
Top-left header logo is fuzzy because it is being stretched. - Chrome, PC
Re:Runnable Wants To Become The “YouTube Of Code” by ianstormtaylor on Wednesday October 02, 2013 @05:54PM (#6485657)
TL;DR - Runnable only solves the small-picture problem. The best solution to the bigger-picture problem would make Runnable obsolete, because it's an anti-pattern to begin with.

---

The small version of the problem is that it's hard to find these snippets spread out across the internet, and then figure out if they work, and then copy-paste them into your program. Runnable solves the finding problem.

But the bigger version of the problem is that you shouldn't be copy-pasting these snippets into your codebase all the time, no matter how small they are. If they are useful enough that you find yourself looking them up often, or they are useful enough that they merited being posted on someone's blog, then they are useful enough to make into a package and share them properly. The node.js module system with npm gets extremely close to this goal. And for client-side Javascript, component[1] does the same thing.

[1]: https://github.com/component/component

This is one place where other client-side Javascript package managers completely fall over. There are multiple different "types" of packages.

1. There are the typical "big libraries"

  - jQuery
  - superagent
  - mocha
  - d3
  - backbone
  - underscore
  - angular.js
  - etc.
2. Then there are "plugins", which are pretty big in scope themselves. They have to be big enough to be "plugin-worthy", influenced mostly by how annoying it has been to install plugins in the jQuery days, via copy and pasting them into your /libs folder. These are things like:

  - backbone marionette
  - jQuery waypoints
  - underscore string
  - any jquery plugin
  - any angular plugin
  - etc.
Most package managers, with that kind of thinking in mind, stop there, at the "big library" and "plugins" level. Bower has this shortcoming. It's great for quickly grabbing a copy of jQuery and a few jQuery plugins, but it doesn't actively encourage making smaller modules, which is critical to solving the big-picture need Runnable is trying to solve.

3. The third type of package are tiny modules that at first glance you are tempted to just stick right into your /utils folder. These are so small that in old-school package managers it would be more hassle just to make them into packages. (This is why it's crucial for package managers to have as little beaurocracy as possible by the way, to avoid that line of thinking.) These are things like:

  - https://github.com/matthewmueller/uid
  - https://github.com/yields/has-transitions
  - https://github.com/pazguille/shuffle-array
  - https://github.com/ianstormtaylor/to-snake-case
  - https://github.com/jwerle/to-csv
  - https://github.com/segmentio/canonical
Those tiny modules are the kinds of things you find StackOverflow answers for all the time. People keep having the same problems over and over again, and eventually the answers get voted up. Things like, "how do I convert a camel case string into a snake case string?".

As soon as you take those simple tasks and package them up in a way that installing them is as easy as:

  $ component install ianstormtaylor/to-snake-case
Then you start to see crazy gains in productivity and quality of your code. When you do that you aren't copy-pasting some shoddy StackOverflow answer into your codebase, so that the onus is now on you to maintain it. Instead, you're just dependning on an open-source component that is packaged along with tests to make sure it continues to work. It's visible by tons of others, can be improved when bugs crop up, and you don't need to maintain yourself if you don't want to.
Re:Runnable Wants To Become The “YouTube Of Code” by mumbi on Wednesday October 02, 2013 @04:02PM (#6484909)
Good idea. Site needs definite polishing. Usability is an issue and it just looks mediocre, no attention to detail.
Re:Runnable Wants To Become The “YouTube Of Code” by tjmehta on Wednesday October 02, 2013 @09:09PM (#6486503)
Sorry for the design problems earlier mumbi! We have now resolved this issue now, turns out some of our servers didn't have the proper css file.
Re:Runnable Wants To Become The “YouTube Of Code” by mumbi on Wednesday October 02, 2013 @10:00PM (#6486667)
ah, that explains it. It looks great now. Keep up the good work!
Re:Runnable Wants To Become The “YouTube Of Code” by barbchavez on Wednesday October 02, 2013 @04:41PM (#6485229)
Don't be a hater. The UI works very well and is clean and not cluttered.