Hi Eric, On 11/29/06, Eric Anderson <[EMAIL PROTECTED]> wrote: > > Peter Michaux wrote: > > If you work with Rails but are unhappy with Prototype . . . > > > > I'm excited about the launch of my new JavaScript library called Fork > > at http://forkjavascript.org with the MIT license. Below are snips > > from the front page of the Fork site... > > I actually like the design of Prototype and Scriptaculous (for probably > the same reasons you dislike it) but I understand that everyone has > their own needs and opinions so I welcome another library.
I understand the idea of liking one API over another. Fair enough. However, I think that choosing an library because it has a nice API but poor internals is an unfortunate choice. Browser scripting is such a difficult deployment environment that going with the way browsers like to do things is more important than making JavaScript work the way developers want with sugar. I think the final results in a web page are more important then slight changes in code friendliness with buggy sugar. > One thing you may want to consider. Part of the reason so many people > are into Prototype is because Rails has tight integration with > Prototype. If you are looking for bigger adoption it might be useful to > also provide some Rails integration. What would be great is if a plugin > could override the javascript integration built into Rails to do the > same thing with your library. That way a person could transparently > switch to another Javascript library (such as yours). > > Without the integration I would imagine most people will "go with the > flow" and continue to use Prototype even if it is not their favorite. You are right. The Ajax part of my library already does the necessary REST tricks but I do need to have a plugin for link_to_remote and form_for etc. The plugin should be relatively short. I am focusing on quality JavaScript right now (for example, I've spent about 6 hours researching opacity setting today.) Perhaps someone better versed in the current Rails core would be willing to write a short plugin for the action view helpers. It is literaly on my list of things to do but a little down the list so if anyone is interested please let me know. I am not interested in a plugin to add my DOM mutate functions (prototype's Event.replace, and insertion etc.) available through rjs because Dan Webb's new ejs templates are so much better than rjs and I think Rails developers should be encouraged to use ejs (I think RJS should be deprecated or at least moved to a plugin and ejs moved to core). http://www.danwebb.net/2006/11/24/minusmor-released However is someone wanted to write a plugin for Fork rjs they could very quickly. That is much easier then link_to_remote and form_for. I could even supply the basic blocks as I've done this before. Thanks, Peter --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
