The JavaScript blog.


node express survey mean

Mean, Survey Visualisations

Posted on .


You want to build a web application, and you need a database. You can write JavaScript, but you're not yet completely comfortable with Node. What do you do?

I wrote about Getting MEAN recently, a book about building web applications with MongoDB and Express. If you're interested in this approach, a quick way to get started is Mean (GitHub: linnovate / mean, License: MIT), a module that collects everything you need together. It even includes AngularJS and Bootstrap, so you get a solid interface out of the box.

If you already understand the MVC pattern, and use AngularJS, then this is definitely a quick way to get started. It's also a handy way of getting experiments up and running quickly, which is a great way to learn.

Survey Visualisations

Survey Visualisations

Konrad Dzwinel sent in these visualisations of the DailyJS survey. It allows you to see how answers to one question map to another. This is cool because I wanted to compare "What type of JavaScript do you write?" to "Where do you use JavaScript?" -- I was expecting to see a lot of people writing side projects for the server at home, but the split is pretty even.

The visualisations are powered by D3.js, and Bootstrap has been used as well.


community canvas graphs git ES6 survey

JavaScript Survey 2012, Gitgraph, ES6 Proxies

Posted on .

JavaScript Survey 2012: RFC

I'm currently researching the next JavaScript Developer Survey. I'd like feedback on questions. If there's anything you'd strongly like to see in the survey, please contact me and I'll see if I can incorporate it.

Previous surveys can be found here:

In general, the surveys try to determine:

  • How many readers are client-side or server-side developers
  • Whether or not readers write tests
  • Other languages used (C#, Java, Objective-C, PHP, Ruby, Python, etc.)

It's not necessarily used to design content for DailyJS -- the results are shared with the community benefit everyone.


Gitgraph (GitHub: bitpshr / Gitgraph, License: WTFPL) by Paul Bouchon is a Canvas-based GitHub participation graph library. It's based around a constructor function that accepts arguments for things like GitHub username, width, height, and colours:

var graph = new Gitgraph({  
    user        : 'nex3',                // any github username
    repo        : 'sass',                // name of repo
    domNode     : document.body,         // (optional) DOM node to attach to 
    width       : 800,                   // (optional) graph width
    height      : 300,                   // (optional) graph height
    allColor    : "rgb(202, 202, 202)",  // (optional) color of user's participation
    userColor   : "rgb(51, 102, 153)",   // (optional) color of total participation
    background  : "white",               // (optional) background styles
    showName    : true                   // (optional) show or hide name of user / repo

The author wrote some background on it in GitHub Graphs Fo' Errbody, because he had to wrap missing API functionality with a proxy.

Multiple Inheritance in ES6 with Proxies

Multiple Inheritance in ES6 with Proxies is an introduction to ES6 proxies by Jussi Kalliokoski. The author's example uses EventEmitter, which I find useful because multiple inheritance with EventEmitter is something I've seen typically implemented using a for loop to copy properties.

The Proxy solution isn't far off that approach and requires more code, but it's worth reading if you're struggling to understand proxies.