LINKDING
Login
Shared bookmarks
Sort by
Added ↑
Added ↓
Title ↑
Title ↓
Apply
Tags
Dan Wahlin - The Prototype Pattern - Techniques, Strategies and Patterns for Structuring JavaScript Code
#javascript
#pattern
#prototype
#tutorial
|
The Prototype Pattern can be broken out into two main sections including a constructor section and a prototype section. Prototyping allows functions and properties to be associated with objects. However, instead of each object instance getting a copy of all functions/properties each time an object is created, only one set of functions/properties exists across all objects resulting in less memory consumption. In other words, functions and properties are defined once per prototype rather than once per object.
9 years ago
|
View
Shared by
ttscoff
Script Junkie | Understanding the Publish/Subscribe Pattern for Greater JavaScript Scalability
#blogit
#javascript
#pattern
#pubsub
|
I didn't discover this pattern until I wrote my first Safari extension. It's worth getting a grasp on.
13 years ago
|
View
Shared by
ttscoff
Previous
1
Next
User
Everyone
ttscoff
Apply
Tags
-javascript
-pattern
b
logit
p
rototype
pubsub
t
utorial