...

View Full Version : what frameworks do you use?



kejo
11-05-2008, 07:16 PM
Hello everybody.

I'd like to hear what frameworks you use and feel to suggest ?


thanks for sharing.

ohgod
11-05-2008, 07:29 PM
i use prototype (http://www.prototypejs.org/api) with scriptaculous (http://script.aculo.us/) and Prototype Window (http://prototype-window.xilinus.com/index.html). Between the 3 it makes everything from ui to ajax a snap.

That said, I'm biased because I have yet to use most of the others (yui, jquery, etc).

rnd me
11-06-2008, 05:42 AM
i used to use them, i like the architecture of Prototype.
but they all have too much bloat and incompatibilities as a result.

i recommend making your own from scratch.
you learn a lot about javascript and various browsers by doing so.


here is the basis of most of my apps:




if (!Array.prototype.map) {// from http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Objects:Array:map
Array.prototype.map = function (fun) {var len = this.length;if (typeof fun != "function") {throw new TypeError;}var res = new Array(len);var thisp = arguments[1];for (var i = 0; i < len; i++) {if (i in this) {res[i] = fun.call(thisp, this[i], i, this);}}return res;};}

if (!Array.prototype.filter) { //from http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Objects:Array:filter
Array.prototype.filter = function (fun) {var len = this.length;if (typeof fun != "function") {throw new TypeError;}var res = new Array;var thisp = arguments[1];for (var i = 0; i < len; i++) {if (i in this) {var val = this[i];if (fun.call(thisp, val, i, this)) {res.push(val);}}}return res;};}

function el(tid) {if (tid.nodeName) {return tid;}return el._ts[tid] || (el._ts[tid] =
document.getElementById(tid));}el._ts={};



rarely do i need much else in the way of stock code.
if you don't know about Array.map, you owe it to yourself to check it out.

sybil6
11-12-2008, 02:40 PM
prototype is pretty ok , i found it has very nice methods, jquery is ugly i have never seen a more mutilated piece of javascript and aside all its stupid slow, fast methods that have plague the internet..

kejo
11-12-2008, 06:59 PM
any jquery fan :D ??

Bill Posters
11-12-2008, 07:07 PM
any jquery fan :D ??

http://docs.jquery.com/Sites_Using_jQuery


I started out with my own (having become very proficient with js), but later tried on YUI for size for a while.
I ultimately found jQuery to be a better option, due to its intuitive, selector-based syntax and it's now my default framework/mindset for any project with enough js to make using a framework worthwhile.

kejo
11-12-2008, 07:10 PM
what didnt you like of yui ?

Bill Posters
11-12-2008, 08:12 PM
It wasn't that I didn't like YUI, per se.
I just felt that jQuery's level and kind of abstraction made for a smoother, quicker workflow for me, particularly given that I spent much of my (working) time nose-deep in CSS anyway.

It seemed alien at first, but quickly came to feel more intuitive than YUI.
I even tried add-ons for YUI which gave it support for selector-based DOM selection, but jQuery felt more robust.

The chainability is also very appealing.

kejo
11-12-2008, 08:17 PM
what plugin/features are you using more out of jquery ?

Bill Posters
11-12-2008, 09:14 PM
what plugin/features are you using more out of jquery ?

Of those I do use, 'easing' is possibly the most frequent.

However, I find that I can achieve most of the techniques I'm inclined to use without the need for additional plugins - which, for many simple taks, only serve to bloat the code. After all, plugins only really serve to supply an API/abstracted front-end for tasks which can all be achieved using the main jQuery library (combined with some good, ol' W3C DOM-scripting and js core), but which might make the techniques more approachable (packagable) for those without a good understanding of DOM logic.

rhinodog8
11-13-2008, 04:27 AM
I use prototype (http://www.prototypejs.org/), the available functions and options are huge, and I use it along side script.aculo.us (http://github.com/madrobby/scriptaculous/wikis/home) which is the best effects library, it offers a lot more than just static effects and very specific options, slider, controls, builder and transition effects on the effects! Very cool.

Plus prototype is only 47kb compress and i think around 30kb gzipped. Not the smallest, I know, but a lot smaller than people think, and is totally worth the extra 15kb.

kejo
11-13-2008, 02:57 PM
rhinodog8 have you tried jquery ?

hip_hop_x
11-14-2008, 10:55 AM
i prefere mootools, but i used jquery too.

kejo
11-14-2008, 01:10 PM
i prefere mootools, but i used jquery too.
can you explain us why you moved from jquery to mootools?

tosbourn
11-14-2008, 04:34 PM
Interesting thread - someone told me jQuery is by far the best and I had no reason to doubt them, so I have started learning/using it.

patorjk
11-18-2008, 04:00 AM
I've used YUI and found its slider, color picker and tab controls to be really useful. I've also used Plotkit for creating web charts. Plotkit is really nice. Its built on top of Mochikit, which I thought was dead (it hadn't been updated in over a year when I was playing around with it), however, I just visited their website and it looks like they're updating it again.

I've been thinking about learning JQuery, but I keep hearing good things about Prototype too. At some point I'm going to sit down and try to learn one of them in depth. Though the idea of writing to learn to write a framework from scratch sounds pretty interesting too.

Anyway, I can recommend YUI and Plotkit, both of them are very nice, however, I'm not sure how they compare to all of the others. When I decided to go with YUI, I made the decision because I wanted to use a sliderbar in something I was doing and YUI had the best looking sliderbar of any of the frameworks I looked at.

arthurakay
11-18-2008, 09:57 PM
I'm a huge fan of ExtJS.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum