One of my favorite features offered by both the Prototype and the Revealing Prototype patterns is the extensibility they provide. Patterns like the Revealing Module Pattern, Prototype Pattern, Revealing Prototype Pattern, and others can be used to structure code and avoid what I call “function spaghetti code”. There are several different patterns that can be used in JavaScript to structure code and make it more re-useable, more maintainable, and less subject to naming collisions.
0 Comments
Leave a Reply. |