Hammock-Driven Development Talk Notes

Occasionally you will find a video or talk that connects or resonates with you in a great way. Rich Hickey’s “Hammock Driven Development” talk is packed with wisdom. I keep coming back to re-watch and today, I have written down some key points from this amazing talk! Key Ideas Take more time to think through […]

An Ode to Code

Making time to code can be done every day. Carve out those little moments where you can automate tedious tasks or study up on that hot new Python library that takes your quality to another level. Take time to reorganize and refactor in your favorite text editor. Break your script, then break it again. Break […]

How to Upgrade Requests in the Bash Console

This command can be used to upgrade your Python requests library with pip, Python’s package manager. It is tailored for a PythonAnywhere environment. I suppose this command works on any Bash console, but if you’re running your app with pythonanywhere, you can find the bash console here: https://www.pythonanywhere.com/user/your_username/consoles/ Install requests with this command: Substitute in […]

Experiencing Flow While Coding

Yesterday, I experienced a flow state where I became manically obsessed with perfecting a script I was working on. I think it’s beautiful code, about 100 lines long without docstrings. It solves a real need and it felt great to write it. Some scripts feel terrible to write and you know they’re bad. However, this […]

ftfy, The Wonky Text Fixing Python Library

Every Python programmer has undoubtedly come across some crazy characters. The ftfy library “Fixes Text For You” and acts like a swiss army knife when you’ve got questionable characters breaking your script. In my case, an HTTP request was failing because of weird cryptic letters hiding in the data when it was only supposed to […]

How to Track Python Script Completion

Did your script run to completion? Sure, you might log some tracebacks along the way or terminate the program early with sys.exit(). But did your script actually run completely to the end? I have yet to use the Trace module but it seems worth checking out also. Visualization tools like heartrate are worth mentioning too […]

Memory Monitoring Python Libraries + Tools

If you write Python code, there’s probably been a time or two when you saw the dreaded “MemoryError”. This happens after one of your Python scripts stops because your computer has no spare RAM to execute it. I recently experienced this frustration whilst trying to write hundreds of thousands of csv files. However, this time […]