@JREAM - Prototype is a powerhouse but maaaaaan is it a lot of key strokes in comparison to jQuery. i've found myself clinging to jQuery though in the quick hitters, but when i'm on application or commercial level projects i tend to utilize Prototype because it just "feels" more appropriate for some reason. But i'm guessing this debate will rage on.
@goon245 I agree 100% with you. I know Apple uses Prototype, they are a huge company! If JQuery had the Object extension, Class Creation built in, and Templating built in, Id be very happy. The Object object in Prototype is just awesome, I wish JQuey had it :(
Thanks! Coming from PHP, I'm having trouble understanding how one would go about programming an application in Javascript. This helped a bit.
I read D. Crockford's Javascript - the Good Parts, but while it certainly was helpful for my coding style in general, it doesn't really show how to go about making apps in Javascript.. It's got like 20 ways to build objects (as functions, JSON, prototype, etc...), with no clear guidelines on when and how you should use which.
@MelvinSF Weird thing about JQuery is the do something funny with 'this'. I cant decide if I like Prototype JS or JQuery better, because JQuery is much more pleasant to type, but Prototype has classes and templates built in if you wanna go custom the whole way rather than use 3rd party plugins.
@JREAMdesign Hmhm. With prototype I was referring to Javascript's built-in prototype feature, which I think is something like PHP's extends..maybe..but...not quite..or something. I think "this" referring to the function itself is because of Javascript treating these functions (anything, actually) as objects.
The Prototype-framework/library supports classes, though? That's very interesting, I'm going to check that out.
@MelvinSF Oh I see. Sorry I was a bit off topic. Prototype supports an easy way to create classes. However, JQuery's John Resig recently made a class creator to lay on top of JQuery but I haven't tried it out. It's a hard decision for me, because JQuery syntax is so nice, and getting used to Prototype $ $('.classSelector').invoke('observe', 'click', function(e) {}); is a bit odd.
Did it! jsfiddle /unbmd/1/
screws0ft 3 days ago
I've found a bug: jsfiddle /unbmd/ .
Try looking in console so you shall see first variable works, and second doesn't.
Than, delete .bind(this) so you shall see first variable doesn't work, and first work.
I could make _ww variable in global scope, but I don't think is a good ideea.
screws0ft 3 days ago
This has been flagged as spam show
Great video. 'this' is tough to wrap my head around but this vid helps
pavkey88 6 months ago
@JREAM - Prototype is a powerhouse but maaaaaan is it a lot of key strokes in comparison to jQuery. i've found myself clinging to jQuery though in the quick hitters, but when i'm on application or commercial level projects i tend to utilize Prototype because it just "feels" more appropriate for some reason. But i'm guessing this debate will rage on.
goon245 8 months ago
@goon245 I agree 100% with you. I know Apple uses Prototype, they are a huge company! If JQuery had the Object extension, Class Creation built in, and Templating built in, Id be very happy. The Object object in Prototype is just awesome, I wish JQuey had it :(
JREAMdesign 8 months ago
esa idea es infinita muchas gracia spor la info :D
rapblack2 8 months ago
@rapblack2 Hope you understood the video because I have no idea what you said!
JREAMdesign 8 months ago 3
@JREAMdesign si no entiendes español te lo digo en inglesI think the idea is infinite thx u
rapblack2 8 months ago
Thanks! Coming from PHP, I'm having trouble understanding how one would go about programming an application in Javascript. This helped a bit.
I read D. Crockford's Javascript - the Good Parts, but while it certainly was helpful for my coding style in general, it doesn't really show how to go about making apps in Javascript.. It's got like 20 ways to build objects (as functions, JSON, prototype, etc...), with no clear guidelines on when and how you should use which.
MelvinSF 8 months ago
@MelvinSF Weird thing about JQuery is the do something funny with 'this'. I cant decide if I like Prototype JS or JQuery better, because JQuery is much more pleasant to type, but Prototype has classes and templates built in if you wanna go custom the whole way rather than use 3rd party plugins.
JREAMdesign 8 months ago
@JREAMdesign Hmhm. With prototype I was referring to Javascript's built-in prototype feature, which I think is something like PHP's extends..maybe..but...not quite..or something. I think "this" referring to the function itself is because of Javascript treating these functions (anything, actually) as objects.
The Prototype-framework/library supports classes, though? That's very interesting, I'm going to check that out.
MelvinSF 8 months ago
@MelvinSF Oh I see. Sorry I was a bit off topic. Prototype supports an easy way to create classes. However, JQuery's John Resig recently made a class creator to lay on top of JQuery but I haven't tried it out. It's a hard decision for me, because JQuery syntax is so nice, and getting used to Prototype $ $('.classSelector').invoke('observe', 'click', function(e) {}); is a bit odd.
JREAMdesign 8 months ago
@JREAMdesign That's OK. Cool stuff. I am definitely going to dive deep into Javascript once I finish up my current PHP project.
MelvinSF 8 months ago
Gracias, por aclarar esa condenada duda que tenia con el bind !!! , un saludo desde México..
dhamaso 8 months ago
Nice tutorial :D
jeowd 8 months ago
nice for practice =] but why everything is still teaching the basics?
i am learning to learn xslt , i would appreciate if you come up with a tutorial for that?
programmingismylife 8 months ago
@programmingismylife Because its a ton of work to make a long tutorial and get people interested :\
JREAMdesign 8 months ago
@JREAMdesign
i really appreciate your efforts for making these tutorials, i learnt quite a bit from your tutorials =]
but i have got my hands dirty with XML and XSLT these days and looking for help.
programmingismylife 8 months ago