JavaScript Module Pattern

The Javascript module is a great design pattern for Javascript coders. It makes code simple to read and easy to use. It allows you to hide private methods inside your module and expose public properties that you want to expose when you use the Revealing Module Pattern. More importantly you can say bye bye to prototype bloat hell…

Here are a number of useful resources and links for building Javascript modules:

  1. How Do You Structure JavaScript? The Module Pattern Edition
  2. JavaScript module pattern with example
  3. Mastering the Module Pattern

MetricsGraphics.js – a library based on D3.js, optimized for visualizing and laying out time-series data

MetricsGraphics.js is a library built on top of D3 that is optimized for visualizing and laying out time-series data. It provides a simple way to produce common types of graphics in a principled, consistent and responsive way. The library currently supports line charts, scatterplots and histograms as well as features like rug plots and basic linear regression.

via MetricsGraphics.js – a library based on D3.js, optimized for visualizing and laying out time-series data.

Other alternatives for time series graphing are:

Teletype effects in JavaScript

For some reason the nerd in me really likes teletype effects. Maybe it that old school factor that I like.

The other day I came across this rather nice usage of the teletype effect done in JavaScript. Checking out the source it seemed quite simple, so I looked for alternative jQuery plugins that did the same thing.

I came across a post by Yoshi on StackOverflow, which I transposed into a Bootstrap 3 live example on jsFiddle. You can play around with it below.