Harness your Python style to write good Javascript
Python encourages you to write good code. Javascript does not. How can you harness your Python style to write good Javascript? Classes Let’s try to write this Python code in Javascript. Not obvious?...
View ArticleExperience with Meteor
Meteor Day is upon us! Here are the slides I am going to present on my experience developing with Meteor. In a nutshell - Love the principles – they made it easy to develop a great webapp quickly I’ve...
View ArticleVisualising Flows in a D3 Chord Diagram with Hover
This is an example of a reusable chart built using d3. The idea is that you have a matrix of the flows between one category (here, optimist/neutral/pessimist) to another (introvert/extrovert)....
View ArticleD3 Time Series Chart with Zoom & Notes
This is an example of a reusable chart built using d3. The range (zoom) slider and the notes panel are also built in d3, as separate widgets, so they can be customized further. Check the sample source...
View ArticleCurve fitting with javascript & d3
If javascript is up to amazing animations and visualizations with d3, maybe it’s up to non-linear curve fitting too, right? Something like this, perhaps: Here’s how I did it: The hard work is done...
View ArticleFlux & React Best Practices
So, you want to start a new javascript project using React, perhaps using the Flux architecture. Excellent! But you’re not quite sure where to begin. Well, actually, you know where to begin, but you’ve...
View ArticleReact Dropdown Input
React-dropdown-input is a small React component I’ve written that is available as an npm package. It lets you choose from a dropdown menu by typing into an input box. If the example below doesn’t work,...
View ArticleTesting React components with Jest
Jest makes a bold claim to be “Painless Javascript Unit Testing”. I’m looking forward to using it, but it hasn’t quite lived up to that claim for me yet. Hopefully this post will help it do so for you....
View ArticleDropdown menus in Meteor
I’ve been developing a site in Meteor, using their default templating engine Blaze. And here’s a question: what’s the Meteor-like way to show a dropdown menu? I’m using Bootstrap, so of course we can...
View ArticleHow to estimate uncertain data
Data Estimator is a tool that helps answer questions about uncertain quantities, eg. “What will our company’s sales be next year?” It is designed to be used as part of an interview process, where...
View Article