On Nov 29, 6:21 pm, "Josh Black" <[EMAIL PROTECTED]> wrote:
> I think all the time and energy that's spent trying to avoid Javascript is
> hilarious.

 it's only hilarious if javascript is a language with which you have
 significant experience, and you're happy to program a web site in
 not just one language but two.

 javascript, being prototype based, is fantastically powerful, but
it's
 also very archaic.  even if it weren't archaic, its use _still_
places a
 significant burden on developers - because it _is_ a second language.

 so a developer is _forced_ to write code to verify some user input
 not just in _one_ language but _two_.  if the data-input verification
 is particularly complex, no developer in their right mind will
develop
 _two_ sets of the same verification - that's just asking for trouble.

 but ... butbutbut... if you have a -to-javascript _compiler_....

 suddenly you can write the user-input verification code in _one_
 language, run that server-side _and_ client-side (after automatically
 being compiled to javascript).

 that's a _massive_ burden lifted.


>  So far there's RubyJS, Red, HotRuby, and probably some others
> that I'm not aware of.  All so that people don't have to learn Javascript
> and can continue doing nothing but Ruby.  Javascript is an awesome language
> in its own right, and libraries like jQuery just make it that much better.

 actually, they make things fricking awkward: the burden on the
 developer is that they now have _two_ large code-bases to learn,
 use, interface with, one of which is beyond their experience and
 skill-set to fix or enhance, so the project they're working on has to
 pay someone _else_ to fix it or enhance it if it doesn't do the
 required job.

 a <insert-language>-to-javascript compiler plus a wrapper
 around the javascript library suddenly takes away all of the pain,
 and perhaps the <insert-language>-to-javascript compiler
 would take away the need to use the "nice javascript library"
 in the first place.

 now the developer can write in their preferred language,

 JQuery is a _stunningly_ bad choice of example, as its purpose
 is to "play nice" with the features of the browser DOM model,
 [to workaround some of the less salubrious bits of javascript
 when it is used by  *inexperienced* developers, many of whom
 believe that HTML is a "programming language"]

 GWT, Pyjamas and RubyJS all come with a DOM library; GWT and
 Pyjamas have a really decent UI widget library that's very similar
 to Qt4 and Gtk2, and RubyJS has a partial port of that same widget
 set.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to