Jul 04, 2009, 05:02 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Search via SMF or Google: modx forums all of modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
News:Donate to MODx: Donations
Pages: [1] 2 3   Go Down
  Print  
Author Topic: mootools vs.jQuery discussion  (Read 20298 times)
0 Members and 1 Guest are viewing this topic.
TobyL
Coding Team
*
Posts: 1,004



« on: Apr 27, 2007, 08:52 AM »

Way of topic,... but I can't resist Smiley

Mootools is a fine library and I don't mind using it but there is a (performance) difference, especially when using multiple events. The way mootools caches (or stacks) events can slow things down or create very interesting but unwanted effects Smiley I recently discovered this myself trying to develop a graphic intensive interactive grid (24 fields). I coded it in both mootools and in jQuery and the latter behaved much smoother.  Besides that I like the namespacing (if there is such a word) you can use in jQuery wich makes it less prone to conflicts with other libraries.

Having said all that I'm quite happy with MODx using mootools. The previous post was made in jest, but you understood that already I bet.
Logged

davidm
MODx evangelist
Marketing & Design Team
*
Posts: 7,026


Software is like sex, it's better when it's free !


WWW
« Reply #1 on: Apr 27, 2007, 09:01 AM »

Interresting... yeah I have heard the namespace thingy, thought mootools handled that too (but I am still learning).

Nothing prevents MODx users to choose jQuery for the frontend, except they'll have to disable quickedit or suffer conflicts when logged in... Thanks for bringing up the differences, very interresting Jelle Smiley

If you really think jQuery would really be way better than mootools, why not submit that to the team for future release ?
It sure means a bit of work but I have no doubt if the reward is worth it this will make it into future release...
Logged

.: nodeo.net : Pour un web libre, moderne et ouvert ! :: david-molliere.net : Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web :.

*** Forums modxcms.fr Participez à l'élaboration du site MODx francophone ! ***

! Nouveau !  En live, ne manquez pas les news de modxcms.fr sur Twitter   ! Nouveau !

MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.

Config : Apache 2.2.8 - MySQL 5.0.67 - PHP 5.2.8 | Debian 4.0 (Etch)

Réalisations sous MODx : | pargade-notaires.fr | soleil.info | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | jocelyne-violet.net
ZAP
Testers
*
Posts: 1,579



« Reply #2 on: Apr 27, 2007, 09:08 AM »

For 0.9.6, MODx will be using mootools for sure. A whole lot of work has gone into making that happen, and the results are generally excellent. But some of us would like to keep stirring the pot to see if that might change for 0.9.7 and beyond...

There's already a lot of discussion on this throughout the forums, so I won't belabor it here.

As for the QuickEdit frontend issue, I think that the folks at jQuery have actually provided a way to resolve that easily, which jester444 discovered and posted here: http://modxcms.com/forums/index.php/topic,2531.msg93221.html#msg93221
Logged

"Things are not what they appear to be; nor are they otherwise." - Buddha

"Well, gee, Buddha - that wasn't very helpful..." - ZAP

Useful MODx links: documentation | wiki  | forum guidelines  | bug reports  | info you should include with your post | commercial support options
rthrash
Foundation
*
Posts: 10,471



WWW
« Reply #3 on: Apr 27, 2007, 09:08 AM »

All libraries are under consideration, and jQuery definitely has strong support behind it (both as requests here and behind it in its community). If jQuery is your library of choice, both Ajax Search and Quick Edit should be pretty straightforward to port to that library.
Logged

MODx is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you help us help you, read the wiki, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
charliez
Sr. Member
****
Posts: 295



WWW
« Reply #4 on: Apr 27, 2007, 10:32 AM »

And, if  I may say so, the communities are completely different...
try making a newbie question in MooTools and you will get pummeled
and you probably will never go there again...
The jQuery community is much more friendly and understanding...

Before you guys start poking at me...
yes, the MODx community is the friendliest I have seen...
seriously... I thing sottwell put it nicely in one thread I read...
something like, "it takes a lot to make somebody angry in
this community"... and I think that is right, this is a comfortable place
to learn, communicate and work!!
Logged

Website: www.mercologia.com 
Digital Stickiness Blog (in Español): www.mercologia.com/blog
davidm
MODx evangelist
Marketing & Design Team
*
Posts: 7,026


Software is like sex, it's better when it's free !


WWW
« Reply #5 on: Apr 27, 2007, 11:16 AM »

charliez, you got a point here... I haven't decided yet if I'll use mootools or jQuery on the frontend... I've been learning mootools but the while the doc is probably very nice for a proficient js coder, it's hard on beginners...  jQuery doc provides context for the code and a step by step approach which makes it easier. Didn't check their forum yet, but that's good to know Smiley

And thanks for the kind words Smiley

A community is a learning place, and personnally, I learn a lot from others but also from trying to make as clear to others as possible what I know. Questions are as enlightening as answers and sometimes more !
Logged

.: nodeo.net : Pour un web libre, moderne et ouvert ! :: david-molliere.net : Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web :.

*** Forums modxcms.fr Participez à l'élaboration du site MODx francophone ! ***

! Nouveau !  En live, ne manquez pas les news de modxcms.fr sur Twitter   ! Nouveau !

MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.

Config : Apache 2.2.8 - MySQL 5.0.67 - PHP 5.2.8 | Debian 4.0 (Etch)

Réalisations sous MODx : | pargade-notaires.fr | soleil.info | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | jocelyne-violet.net
davidm
MODx evangelist
Marketing & Design Team
*
Posts: 7,026


Software is like sex, it's better when it's free !


WWW
« Reply #6 on: Apr 28, 2007, 03:47 AM »

About the team choosing mootools over jQuery :

Mootools meets a couple of important goals that fit philosophically with MODx. First it's lightweight and fast. Second it's very extendable. While there are other systems that are a bit faster, not many that I'm aware of can match MODx for flexibility and overall performance. I think the same is very true for Mootools.

Ok.. I have no experience from either of those, so I have to take your word for it Smiley but from what I understood with a bit of googling is that MooTools is truly much better extensible than jQuery. jQuery's biggest advantage though is that the syntax is very simple. You don't have to write as complex code as you do with other libs. But the result from my googling session is that MooTools really looks the best fit for MODx. The basic idea in both MooTools and MODx is very similar.

EDIT: And I dream of the day that MODx has the same kind of download than MooTools has.. And what the little birds are saying, the wait might not be that long.. Wink

About namespaces and mootools :

There is also now a namespaced version of mootools available if you look hard enough (like 2 minutes on the mootools forums).

I had missed that !
I'll go look for it...

This being said, I took a longer look at jQuery and the doc is way easier to grasp no sweat...

Edit : To Moderator : Thanks for spitting the thread Smiley
« Last Edit: Apr 28, 2007, 09:33 AM by davidm » Logged

.: nodeo.net : Pour un web libre, moderne et ouvert ! :: david-molliere.net : Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web :.

*** Forums modxcms.fr Participez à l'élaboration du site MODx francophone ! ***

! Nouveau !  En live, ne manquez pas les news de modxcms.fr sur Twitter   ! Nouveau !

MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.

Config : Apache 2.2.8 - MySQL 5.0.67 - PHP 5.2.8 | Debian 4.0 (Etch)

Réalisations sous MODx : | pargade-notaires.fr | soleil.info | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | jocelyne-violet.net
gareth84
Jr. Member
*
Posts: 48


WWW
« Reply #7 on: Apr 28, 2007, 04:09 AM »

i find the people over at jquery a lot nicer towards newbies  Grin
« Last Edit: Apr 28, 2007, 09:10 AM by gareth84 » Logged
beryl
Member
**
Posts: 75



« Reply #8 on: Apr 28, 2007, 01:17 PM »

It´s always easy to get answeres from Jquery users, and even the developers.
Ive been on the mailing list for about 4 months now, and even "stupid" questions are being answered.
Logged

“Animals are something invented by plants to move seeds around. An extremely yang solution to a peculiar problem which they faced.” Terrance Mckenna.
Lucretia
Jr. Member
*
Posts: 39



WWW
« Reply #9 on: Apr 29, 2007, 07:48 AM »

Now, I thought the licence was commercial, now it seems it's not...that's why I chose mootools originally.

Luke.
Logged
beryl
Member
**
Posts: 75



« Reply #10 on: Apr 29, 2007, 10:10 AM »

But you thought the cow was free  Wink
Logged

“Animals are something invented by plants to move seeds around. An extremely yang solution to a peculiar problem which they faced.” Terrance Mckenna.
aour
Moderators
*
Posts: 835



« Reply #11 on: Apr 29, 2007, 04:10 PM »

Hi

Actually, I learn js and Jquery website (documention and tutorials) is a very good teacher.

And :

- some tutorials in different languages
- A lot of plugins
Logged

davidm
MODx evangelist
Marketing & Design Team
*
Posts: 7,026


Software is like sex, it's better when it's free !


WWW
« Reply #12 on: Apr 29, 2007, 04:59 PM »

jQuery has way more plugins than mootools, which would mean the dev community around jQuery has grown more rapidly (might be helped by friendliness too !).

I definitely thinks I'll choose jQuery over mootools, in the end...
Logged

.: nodeo.net : Pour un web libre, moderne et ouvert ! :: david-molliere.net : Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web :.

*** Forums modxcms.fr Participez à l'élaboration du site MODx francophone ! ***

! Nouveau !  En live, ne manquez pas les news de modxcms.fr sur Twitter   ! Nouveau !

MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.

Config : Apache 2.2.8 - MySQL 5.0.67 - PHP 5.2.8 | Debian 4.0 (Etch)

Réalisations sous MODx : | pargade-notaires.fr | soleil.info | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | jocelyne-violet.net
tillda
Testers
*
Posts: 89



WWW
« Reply #13 on: Apr 29, 2007, 05:50 PM »

Hi.

I've checked both libraries last months and let me say my opinion.

IMHO, jQuery is great for enhancing web sites with JS/Ajax stuff. It's simple, becouse there is only one principle for doing anything - the famous "find things, do stuff". You can create really advanced widgets just by specifiing the data by HTML elements than finding the root elm by id and running the correct plugin. Like $("#mytabs").tabs().

On the other hand, I found Mootools much more developer-oriented. You don't have a bunch of ready-made widgets, but rather five to ten sets of good developer tools. Like the Base library for impelementing classes. Like the $something functions ($pick, $extend...).

So, on front-end jQ is imho the best way, since things can't be any simpler. But if you are building the whole app in JS, I would probably vote for Mootools.
Logged

Bravado
Coding Team
*
Posts: 1,104


"I can learn to resist anything but temptation..."


WWW
« Reply #14 on: Apr 29, 2007, 11:15 PM »

How about a combo of MooTools and EXT?  That way you can have the lightweight capabilities of MooTools for the majority of the work and throw EXT in the mix when needed.  Might be a win-win combo if it works.  Smiley

Jeff
Logged

Jeff Whitfield

"When someone asks you, A penny for your thoughts, and you put your two cents in, what happens to the other penny?"

-George Carlin
Pages: [1] 2 3   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!