You're Too Close

Have you encountered the following scenario? You are trying to solve a problem (or helping solve a problem) and know or at least think you know the solution.  You are in the middle of implementing it when someone else looks at it and says, "why don't you do it this…

C-Style Unions And Python

So, you're creating a C Union (used to create a variant type) and writing it to a file, socket, etc and want to read that in Python. There are two ways to deal with this. Assume the following union definition in C typedef union { int i; unsigned int u;…

Node.js vs Python vs PyPy – A Simple Performance Comparison – Updated

Some History This is a followup to my original post: Node.js vs Python vs PyPy - A Simple Performance Comparison.  This article corrects a discrepancy caused by a slight difference in the JavaScript implementation which skewed the Node.js results. The Algorithm As stated in the previous article, I've attempted to…

Notes On Writing Testable JavaScript Vol 1

When writing JavaScript, I am a big fan of minimizing functionality and variables exposed publicly, which we all know to be good practice. However, this leads to anonymous functions and functions hidden within closures.  So.... How Do You Test That? How exactly do you test private methods in JavaScript?  To…

Make It Easy

Building a successful product is usually complicated business.  With any luck a project will have an automated deployment process.  This however is only part of the equation.  Another significant part would be an automated build process. Long Term Success Long term success means making it easy for new people to…

Everyone's A Coder

Question: Are we headed to an era where everyone should know how to write at least some rudimentary code?   Learn to Code Today, there are many sites on the internet offering to "teach you to code." Two of which are KhanAcademy and CodeAcademy.  These sites offer a selection of…