Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-05-2008, 06:16 PM   PM User | #1
kejo
New Coder

 
Join Date: Jan 2008
Posts: 31
Thanks: 4
Thanked 0 Times in 0 Posts
kejo is an unknown quantity at this point
what frameworks do you use?

Hello everybody.

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


thanks for sharing.
kejo is offline   Reply With Quote
Old 11-05-2008, 06:29 PM   PM User | #2
ohgod
Regular Coder

 
ohgod's Avatar
 
Join Date: Jun 2008
Location: Ohio
Posts: 579
Thanks: 6
Thanked 69 Times in 69 Posts
ohgod is on a distinguished road
i use prototype with scriptaculous and Prototype Window. 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).
ohgod is offline   Reply With Quote
Old 11-06-2008, 04:42 AM   PM User | #3
rnd me
Senior Coder

 
rnd me's Avatar
 
Join Date: Jun 2007
Location: Urbana
Posts: 3,468
Thanks: 9
Thanked 466 Times in 450 Posts
rnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the rough
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:

Code:
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.
__________________
my site (updated 5/13)
STATS (2013/5) HTML5:90.2% MOB:14% IE7:0.5% IE8:8.6% IE9:9.8% IE10:10%
rnd me is offline   Reply With Quote
Old 11-12-2008, 01:40 PM   PM User | #4
sybil6
Regular Coder

 
Join Date: Jul 2006
Posts: 399
Thanks: 33
Thanked 7 Times in 7 Posts
sybil6 can only hope to improve
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..
sybil6 is offline   Reply With Quote
Old 11-12-2008, 05:59 PM   PM User | #5
kejo
New Coder

 
Join Date: Jan 2008
Posts: 31
Thanks: 4
Thanked 0 Times in 0 Posts
kejo is an unknown quantity at this point
any jquery fan ??
kejo is offline   Reply With Quote
Old 11-12-2008, 06:07 PM   PM User | #6
Bill Posters
Senior Coder

 
Join Date: Feb 2003
Posts: 1,665
Thanks: 0
Thanked 27 Times in 25 Posts
Bill Posters will become famous soon enough
Quote:
Originally Posted by kejo View Post
any jquery fan ??
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.

Last edited by Bill Posters; 11-12-2008 at 06:09 PM..
Bill Posters is offline   Reply With Quote
Old 11-12-2008, 06:10 PM   PM User | #7
kejo
New Coder

 
Join Date: Jan 2008
Posts: 31
Thanks: 4
Thanked 0 Times in 0 Posts
kejo is an unknown quantity at this point
what didnt you like of yui ?
kejo is offline   Reply With Quote
Old 11-12-2008, 07:12 PM   PM User | #8
Bill Posters
Senior Coder

 
Join Date: Feb 2003
Posts: 1,665
Thanks: 0
Thanked 27 Times in 25 Posts
Bill Posters will become famous soon enough
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.
Bill Posters is offline   Reply With Quote
Old 11-12-2008, 07:17 PM   PM User | #9
kejo
New Coder

 
Join Date: Jan 2008
Posts: 31
Thanks: 4
Thanked 0 Times in 0 Posts
kejo is an unknown quantity at this point
what plugin/features are you using more out of jquery ?
kejo is offline   Reply With Quote
Old 11-12-2008, 08:14 PM   PM User | #10
Bill Posters
Senior Coder

 
Join Date: Feb 2003
Posts: 1,665
Thanks: 0
Thanked 27 Times in 25 Posts
Bill Posters will become famous soon enough
Quote:
Originally Posted by kejo View Post
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.
Bill Posters is offline   Reply With Quote
Old 11-13-2008, 03:27 AM   PM User | #11
rhinodog8
New Coder

 
Join Date: Aug 2008
Location: Colfax, California USA
Posts: 64
Thanks: 3
Thanked 5 Times in 5 Posts
rhinodog8 is an unknown quantity at this point
I use prototype, the available functions and options are huge, and I use it along side script.aculo.us 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.

Last edited by rhinodog8; 11-13-2008 at 03:31 AM..
rhinodog8 is offline   Reply With Quote
Old 11-13-2008, 01:57 PM   PM User | #12
kejo
New Coder

 
Join Date: Jan 2008
Posts: 31
Thanks: 4
Thanked 0 Times in 0 Posts
kejo is an unknown quantity at this point
rhinodog8 have you tried jquery ?
kejo is offline   Reply With Quote
Old 11-14-2008, 09:55 AM   PM User | #13
hip_hop_x
New Coder

 
Join Date: Nov 2008
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
hip_hop_x is an unknown quantity at this point
i prefere mootools, but i used jquery too.
hip_hop_x is offline   Reply With Quote
Old 11-14-2008, 12:10 PM   PM User | #14
kejo
New Coder

 
Join Date: Jan 2008
Posts: 31
Thanks: 4
Thanked 0 Times in 0 Posts
kejo is an unknown quantity at this point
Quote:
Originally Posted by hip_hop_x View Post
i prefere mootools, but i used jquery too.
can you explain us why you moved from jquery to mootools?
kejo is offline   Reply With Quote
Old 11-14-2008, 03:34 PM   PM User | #15
tosbourn
Regular Coder

 
Join Date: Aug 2008
Location: Northern Ireland
Posts: 167
Thanks: 12
Thanked 6 Times in 6 Posts
tosbourn is on a distinguished road
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.
tosbourn is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:22 PM.


Advertisement
Log in to turn off these ads.