--
Posted via http://www.ruby-forum.com/.
So, does anyone use PrototypeJS with jQuery?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
It's been my experience that anything you want to do in jQuery you can
do in Prototype, and vice-versa.
Walter
> --
> You received this message because you are subscribed to the Google
> Groups "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-
> ta...@googlegroups.com.
There should be no conflict and functional duplication, I suggested to
include only the 'lang.js' part of Prototype (without it's DOM and AJAX
parts). Take a look please at the link below, it seems that it's
possible to include only lang.js or I'm miss something?
https://github.com/sstephenson/prototype/tree/master/src/prototype
CoffeScript is standard from Rails 3.1 so it will be the best practice
for sure.
http://jashkenas.github.com/coffee-script/
Give it a try, bests:
gezope
On Jul 18, 12:59 am, Alexey Petrushin <li...@ruby-forum.com> wrote:So, does anyone use PrototypeJS with jQuery?
Best regards
Peter De Berdt
// Underscore methods that we want to implement on Array.
var methods = ['each', 'map', 'reduce', 'reduceRight', 'detect',
'select',
'reject', 'all', 'any', 'include', 'invoke', 'pluck', 'max',
'min', 'sortBy',
'sortedIndex', 'toArray', 'size', 'first', 'rest', 'last',
'without',
'indexOf', 'lastIndexOf', 'isEmpty'];
// Mix in each method as a proxy.
_.each(methods, function(method) {
Array.prototype[method] = function() {
return _[method].apply(_, [this].concat(_.toArray(arguments)));
};
});
full thread is here http://github.com/documentcloud/underscore/issues/38
I recently discovered another interesting option - integration with game
via socket. For example, this project https://github.com/d-snp/RProxyBot
(ruby driver for StarCraft 1 from AI Bots competition) uses socket to
connect to the StarCraft 1 game and control all the game.
Would be nice to have such thing for games like this:
FLARE http://clintbellanger.net/rpg/blog/20110709 (diablo clone, with
very cool graphics)
Glest http://glest.org (warcraft 3 clone)
FLARE is especially interesting because it has very high quality art and
small and clean source code size.