Coder Social home page Coder Social logo

jquery-plugin-snippets's Introduction

jquery-plugin-snippets

A bunch of jQuery plugin snippets for Sublime Text 2 via shichuan/javascript-patterns/jquery-plugin-patterns

Clone this repo into the Packages directory of Sublime Text.

Breakdown

  • Basic - the most basic pattern
  • Extend - enables you to define multiple functions at once and which sometimes make more sense semantically
  • Lightweight - perfect as a generic template for beginners and above
  • Namespaced pattern - to avoid collisions and improve code organization when working with components under another namespace
  • Prototypal inheritance - prototypal inheritance with the DOM-to-Object bridge pattern
  • Best options - globally/Per-call overridable options for greater option customization
  • Custom events (Pseudo Pub/Sub) - for better application decoupling
  • 'Highly configurable' mutable - define plugin’s logic using a constructor and an object literal defined on its prototype
  • UI Widget factory - for building complex, stateful plugins based on object-oriented principles
  • UI Widget factory "bridge" - the bridge serves as a middle layer between a JavaScript object that is created using $.widget and jQuery’s API
  • UI Widget factory for jQuery mobile - demonstrating best practices for building mobile widgets
  • UI Widget + RequireJS module - for wrapping jQueryUI widgets inside RequireJS compatible modules
  • Universal Module Definition pattern - create AMD and CommonJS compatible plugin modules which are compatible with a number of different script loaders

References

shichuan/javascript-patterns

shichuan references

The Essentials of Writing High Quality JavaScript

JSPatterns

jQuery Anti-Patterns for Performance & Compression

How DRY Affects JavaScript Performance

Object Oriented JavaScript

JavaScript Patterns

JavaScript: The Good Parts

Pro JavaScript Design Patterns

Essential JavaScript Design Patterns For Beginners, Volume 1.

Eloquent JavaScript

License

According to the site: "100% Free & taken from somewhere else"

Source Files

jquery-plugin-snippets's People

Contributors

james2doyle avatar

Stargazers

Nam Nguyen avatar Milan avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

imtheman

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.