Never miss a beat

Join my newsletter.

Tag: python

Python Length of a List

Published: 2/17/2020

When writing Python, it’s fairly common to find yourself working with lists of data. Usually, you’ll also find yourself trying to figure out just how my items are in that list. Thankfully, in Python, finding the length of a list is fairly easy. The key takeaway here is the len function that’s built into Python . No external library required! The len function takes in a sequence or a collection and returns the number of items contained within. This means that the length function has an…

Why I Switched from Python to Clojure

Published: 7/18/2016

First – a bit of background. When I first started learning programming, I started with a course in high school that focused on Java. From there, I decided I wanted to work for a start-up and I had to learn python (I was naive). I started playing with Python and it just felt right – at first. I spent some more time with it and started to realize that I needed something more. Here’s a brief list of the reasons why I switched. Interpreted Language Python is a dynamic language . There’s a massive…

Writing a RESTful API in Flask & SQLAlchemy

Published: 10/4/2014

First Thing’s First Why would we write this in Python? There’s already rails, spring, and the mean stack which can do the same thing. Let’s consider what Python gives us out of the box. Out of all the languages I’ve touched, it definitely has the easiest learning curve. The syntax is beautiful, and the “batteries included” principle of python just helps you get your server up very quick. Install python, find your dependencies, get coding. Heads up! This article is deprecated. It may not apply to…