Use Dotenv Files When Developing Your Python Apps

Hard-coding configuration is bad. This is one of the things that newbie programmers learn quickly after they realize that have committed sensitive information to a public GitHub repository. And it happens so easily. Often, you are in the spur of the moment, wanting to test something locally, when you figure…

Python: Automatic Argument Unpacking from a Dictionary

Programming often involves creating configuration objects/dicts and passing them around to functions. Let's say we want to pass the following configuration dict to a function: config = { 'prop_a': 'foo', 'prop_b': 'bar' } Usually, a function that consumes this configuration dict would either expect a single parameter: def do_something(…

Revisiting IntStreams in Java8+

This post is mainly a reiteration of an article, I found online. As of Java 8, we have had the ability to replace looping operations on collections with streams and functional operations. This applies to situations where we don't have an up-front collection to iterate upon. What traditionally would have…

Data Science on Your iPad

This article is a follow-up transcription to a talk I recently gave at a local Munich machine learning meetup. Unlike my previous talk, this time I wanted to convey the idea of using an iPad for actively running data science experiments, as opposed to passively consuming information. I illustrated my…