среда, 13 февраля 2013 г.

чит-коды на прототипа

Thanks a lot for the cheat sheet! I recently picked up MooTools and have been using it as of late, but this should still come in mighty handy with another couple of projects in the near future.

I need to try jQuery yet; I've been hearing a lot of good things. The only reason I haven't touched it so far is because it starts with a J (ironically the same thing that Felix thinks is elegant ;-). The "J[insert name]" to me makes me think Java, and I hate Java with a passion (me and Java, we had some bad experiences together, mostly Java decided to be a douche and I decided it should burn in hell).

Prototype is a great library, I haven't been using it much anymore because I like how compact Mootools is (plus most of the time I don't make use of all of the extra functionality, I just code my functionality myself).

Nice cheat sheet, you should make one for Mootools. ;-)

Thanks for the cheat sheet! Alltough cake has very nice ajax helpers, sometimes you need to do it yourself and this helps me a lot!

Felix: What's interesting is that I'm using Prototype less and less. I've been using YUI more and more. jQuery does seem well done and maybe one day I'll get into it... :)

Jonathan Snook said on January 10, 2007

Hey Jonathan, what would I need to do in order to convert you to become a jQuery follower? What reasons do you have to stay with prototype having the elegance of the little J directly in front of your eyes? ; )

Felix GeisendГВfrfer said on January 10, 2007

Great man. Thanks a lot. Have you ever thought about creating some kind of Prototype cheat sheet widget? :)

great! it's always easier to get more in touch with the new version of prototype, if you have such a nice cheat-sheet!!!

Lorenz said on January 10, 2007

Thanks for this Jonathan - love your cheat sheets!

Kieran Huggins said on January 10, 2007

Short URL: http://snook.ca/s/750

I've done this up in Illustrator instead of Fireworks to ensure that the PDF version would be clean and clear. I realized a desktop version was somewhat annoying; at least, for me it was.

Secondly, I've dropped some base classes and internal properties or methods. Some of the stuff only serves a purpose within Prototype and it was just clutter to include it in here.

First, I've included possible parameters. I've used a shorthand to try and fit everything in, so I hope it's clear. Pretty much anytime a function is passed in, it's for a callback. Anywhere a parameter needed a little more explanation, i included a word before it to describe it.

I decided to revisit the cheat sheet. A couple people had been asking about it and with the final release of 1.5.0 just around the corner, now seemed as a good a time as any. I've done things a little differently this time. The first time around, I really just wanted to see how everything was connected and what did what. This time, though, I wanted something a little more practical for me.

I've gone through and detailed the methods and properties of each of the modules within the Prototype JavaScript library.

Комментариев нет:

Отправить комментарий