Scroll below for an important language update to this blog post. I was fixing a bug in a portion of code when I came across a getter structured very similar to the lines below: At first glance, I was confused thinking why would you return a Boolean here? Shouldn’t this be a ternary ...
Programming Languages
Tinkering Around with Adafruit’s PyBadge LC
I recently purchased an Adafruit PyBadge LC. and I've had a lot fun tinkering around with it. There are three boards in this family of boards from Adafruit: PyBadge LC (the one I have)PyBadgePyGamer The PyBadge LC is the cheapest of the bunch, hence the LC for low cost. For more details on the ...
I made a Sphere-O-Bot (An EggBot Mod)
As Easter approaches, I thought building a Sphere-O-Bot (EggBot) would be a fun a STEM related project for the season. I 3D printed the parts for the Sphere-O-Bot, a variant of the original EggBot by Evil Mad Science, and purchased the hardware kit from JJ Robots. Printing and assembling the ...
Avoid using mutable values as default parameter values in Python (Today I Learned)
Today I learned something interesting about the way Python functions behave with default parameter values: avoid using mutable objects such as lists as default values for function parameters. What's the problem? Default parameter values are evaluated when function is evaluated. Which means ...
Getting started with Phaser and ES2015
If you are seeking an easy way to get started on a new Phaser game the ES2015 way, then this guide is for you. In this guide we will first use jspm to quickly set up a new project with a module loader and an ES2015 transpiler. We will then pull the latest Phaser package from the jspm registry and ...
How to watermark images with Python and Pillow (PIL)
I am a DIY blogger, and the most tedious part of the job is editing the images. I am constantly repeating the following steps: Resize the imageAdd a text watermarkCompress the image I wanted to automate the process. There are good solutions out there for automating image manipulation, but it ...
Surviving the Hackathon: Angular Attack 2016
Last weekend, Michael and I participated in Angular Attack. Angular Attack is a 48-hour online hackathon featuring Angular. Participants were allowed to design their web app in the weeks leading up to the competition with the one restriction: no digital assets could be created ahead of time. A ...
Surviving the Hackathon: Ludum Dare 35
Last weekend, Michael and I participated in Ludum Dare 35! Ludum Dare is a themed game jam that occurs 3 times a year. We had 72 hours to create a game with the theme of "shapeshift." The theme for Ludum Dare 35 is Shapeshift. #LDJAMpic.twitter.com/R6uT8yKxTP — Ludum Dare (@ludumdare) April ...
There’s a name for that: the Kebab Case
You know that feeling where you want to describe something, but you don't know the correct or accurate term to label it as? That was me whenever I encountered code or filenames where the letters were all lowercased and the words were separated with a dash. While I was reading through the ...
3 JavaScript Gotchas for the C# Developer
Most of my development experience has been with C#. When I started learning JavaScript, I made a few poor assumptions about the language. My incorrect assumptions about JavaScript inspired this list of three JavaScript gotchas for the C# developer: Brackets do not define scope. this does ...