News for hackers. Stuff that matters.
Re:Ask HN: What does Ruby have that Python doesn't? by Alcides on Friday August 22, 2008 @09:33AM (#283658)
Rails. but you have Django which is better ;)

Seriously, I envy ruby's blocks and being able to redefine a class later in your code (monkeypatching-easy-syntax).

Oh, and Shoes :)

Re:Ask HN: What does Ruby have that Python doesn't? by ghiotion on Friday August 22, 2008 @10:01AM (#283681)
I chose RoR over Python/Django for one simple reason: RoR's tight integration with the Prototype AJAX javascript library. Personally, I like Python as a language much better than Ruby. But if I'm going to code up a Web app, I want easy AJAX integration - I don't want to hand craft a bunch of javascript. It's not that I've got anything against writing javascript, but I hate, hate, hate trying to debug it.
Re:Ask HN: What does Ruby have that Python doesn't? by aconbere on Friday August 22, 2008 @11:40AM (#283790)
I have to agree with the other commenter. I prefer to "roll my own" here. Not because I don't like it when frameworks take care of mess for me, but because I'm constantly frustrated by how frameworks handle JS. A quick and dirty RESTful JSON api is easy enough to build in either framework, and once you're there, Ajax becomes pretty trivial (especially with any of the nice JS Frameworks)
Re:Ask HN: What does Ruby have that Python doesn't? by cstejerean on Friday August 22, 2008 @10:48AM (#283725)
Tight integration with prototype is one of the things I don't like about Rails, mainly because I don't like Prototype (I'm a big fan of JQuery).
Re:Ask HN: What does Ruby have that Python doesn't? by tptacek on Friday August 22, 2008 @12:37PM (#283852)
Then what you want is jRails, which subs jQ in for Prototype in all the Rails helpers and removes Prototype from your project. You "plugin install" it, forget about Prototype, and use nothing but jQuery from then on.
Re:Ask HN: What does Ruby have that Python doesn't? by cstejerean on Friday August 22, 2008 @02:26PM (#284004)
very cool, thanks. wish I knew about it a month ago.
Re:Ask HN: What does Ruby have that Python doesn't? by pavelludiq on Friday August 22, 2008 @09:50AM (#283669)
Yeah, me too. Is it a good idea to learn ruby just to use shoes? I mean is it easier that qt/tk/gtk+/wx?
Re:Ask HN: What does Ruby have that Python doesn't? by utnick on Friday August 22, 2008 @10:47AM (#283723)
you should try it out and see if you like it.. shoes is a good way to learn ruby

shoes is good for simple apps. But if you need complex controls like trees and sliders, coding in shoes would get annoying. Also the documentation for shoes leaves something to be desired.

but it is pretty fun.. i'm coding a shoes app right now and would recommend it