background preloader

JavaScript

Facebook Twitter

Learning JavaScript Design Patterns. Design patterns are reusable solutions to commonly occurring problems in software design. They are both exciting and a fascinating topic to explore in any programming language. One reason for this is that they help us build upon the combined experience of many developers that came before us and ensure we structure our code in an optimized way, meeting the needs of problems we're attempting to solve.

Design patterns also provide us a common vocabulary to describe solutions. This can be significantly simpler than describing syntax and semantics when we're attempting to convey a way of structuring a solution in code form to others. In this book we will explore applying both classical and modern design patterns to the JavaScript programming language. Target Audience This book is targeted at professional developers wishing to improve their knowledge of design patterns and how they can be applied to the JavaScript programming language.

Acknowledgments Credits Reading We already use patterns everyday. Lz-string: JavaScript compression, fast! - pieroxy.net. Goal lz-string was designed to fulfill the need of storing large amounts of data in localStorage, specifically on mobile devices. localStorage being usually limited to 5MB, all you can compress is that much more data you can store. You don't care about the blah-blah? What about other libraries? All I could find was: some LZW implementations which gives you back arrays of numbers (terribly inefficient to store as tokens take 64bits) and don't support any character above 255. some other LZW implementations which gives you back a string (less terribly inefficient to store but still, all tokens take 16 bits) and don't support any character above 255. an LZMA implementation that is asynchronous and very slow - but hey, it's LZMA, not the implementation that is slow. a GZip implementation not really meant for browsers but meant for node.js, which weighted 70kb (with deflate.js and crc32.js on which it depends).

Is this LZ-based? How does it work Very simple. Performance Only JavaScript? Stability. Plugins. Create a new Fiddle - jsFiddle. TodoMVC. Modernizr: the feature detection library for HTML5/CSS3. jQuery UI. jQuery API Documentation. TinyMCE.

Closure Compiler Service.