jquery-boilerplate / jquery-patterns

A variety of jQuery plugin patterns for jump starting your plugin development
1.59k stars 242 forks source link

add ability to call public prototype functions #13

Closed zenorocha closed 11 years ago

addyosmani commented 12 years ago

Because this is the lightweight start version of the plugin: do you think beginners would really want to use this? Considering the barebones factor vs doing anything we might consider a little more advanced.

zenorocha commented 12 years ago

That's true, this feature was proposed by @markdalgleish on #46, which I think that is important, but I don't want to scare beginners too.

markdalgleish commented 12 years ago

I agree that this is potentially too complex for beginners in the context of sharing design patterns. However, I think that this is a perfect candidate for a boilerplate since it's very useful, very powerful but tedious to code for every plugin.

Is it possible for jQuery Boilerplate to be more advanced than the beginner-friendly version in this repo?

addyosmani commented 12 years ago

I think there is definitely scope for a variation of the beginners boilerplate with the above landing in this repo. We have many patterns :)

Perhaps an intermediate boilerplate with enhancements like this?

On Tuesday, 22 May 2012, Mark Dalgleish wrote:

I agree that this is potentially too complex for beginners in the context of sharing design patterns. However, I think that this is a perfect candidate for a boilerplate since it's very useful, very powerful but tedious to code for every plugin.

Is it possible for jQuery Boilerplate to be more advanced than the beginner-friendly version in this repo?


Reply to this email directly or view it on GitHub:

https://github.com/addyosmani/jquery-plugin-patterns/pull/13#issuecomment-5839540

Addy Osmani

Developer Programs Engineer at Google Blogger at: http://addyosmani.com Phone: +44 7501 594 382

zenorocha commented 12 years ago

I think it's possible @markdalgleish.

If we create a better documentation on jQuery Boilerplate, we can add this feature to help intermediaries without affecting the beginners.

Even because the Plugins/Authoring's guide explains how to use methods. It's an important feature.

zenorocha commented 11 years ago

Just to let you know that I don't think it's good to accept this pull request. The ability to call public prototype functions is very important, but it adds a very complex piece of code for a basic pattern. So, for now, what I'm doing in jQuery Boilerplate repository is creating these two guides:

addyosmani commented 11 years ago

Thanks for the update, @zenorocha. As per your suggestion closing this PR. Lets continue discussing how we can improve docs for the patterns/boilerplate on the other thread as time allows :)

zenorocha commented 11 years ago

Great!