FAQ and JavaScript vs. Ruby (was Re: rubynuby - client side Ruby?)



On Wed, Feb 22, 2006 at 12:45:09PM +0900, Jeff Pritchard wrote:
} I would like to be able to do client-side scripting things that in the
} past have been done with javascript embedded in html pages...with Ruby
} instead of javascript.
[...]

Is there a FAQ list out there somewhere? This is the second time this has
come up within a week or two. I'd like to be able to respond to questions
like this with an URL (including an anchor to the specific
question/answer).

Also, I want to mention that JavaScript is a rather nice language. Its
primary failings are:

1) Minor implementation inconsistencies between browsers
2) Major API inconsistencies between browsers
3) Inconveniently missing facility for method callbacks (which can be
overcome with a really simple function)

JavaScript has many of the same language features Ruby has, including
extension by mixin, duck typing, a YAML equivalent (JSON), arbitrary class
and object extension (i.e. adding methods/properties to classes or specific
objects at any time), simple arrays and hashes, etc. It also has
first-class functions, which are equivalent (though not identical) to
blocks.

While it does require one to shift syntax when working on both the client
side and the server side, I see little problem with JavaScript and little
reason to even want to replace it with Ruby on the client. At the same
time, I have no great desire to use JavaScript on the server side, either,
since Ruby/Rails (and other web frameworks in other languages) are at least
as good for the purpose.

} thanks,
} jp
--Greg



.



Relevant Pages

  • Re: Is C# really better than VB 2005
    ... As it turns out for web development, code that runs in the client requires ... code written using JavaScript. ... syntax and grammar of the C language). ...
    (microsoft.public.dotnet.general)
  • Re: Attempt to de-mystify AJAX
    ... I choose to minimise the Javascript because Javascript lacks all the advantages of true, ... In a truly OO language, you'd build the essential elements into a superclass and then make all of your concrete forms into subclasses. ... There are mechanisms available today to keep a thick client up to date via HTTP, without all of the installation and upgrade headaches we've all come to know and hate. ... But I prefer to skirt around the issue by using frame sets. ...
    (comp.databases.pick)
  • Re: Why Quby? (was Re: What are your ruby rough cuts ?)
    ... very Ruby-like language, that runs 100% in the browser (about 4,000 ... closest pure JS implementation of Ruby ... why did you feel the need to fork Ruby syntax? ... The main reason I dislike being forced to use Javascript isn't that I ...
    (comp.lang.ruby)
  • Re: Tier3 today - And Flex-it like NASDAQ (*Only better!*)
    ... FlexBuilder, or just working on the FABridge functionality in general, you ... ArrayCollections are completely accessible via the Javascript in ... Broadcasted server to client messages, ...
    (comp.os.vms)
  • Re: client-side Ruby on iPad/iPhone?
    ... I was never asserting that it was impossible for someone to know JavaScript ... well and to hate it for that. ... Those are all pretty weird, though I could mention similar oddities in Ruby, ... it's fair to hate a language for reasons like that. ...
    (comp.lang.ruby)