What is a PEP and why should I care? Nov 16, 2020 No doubt if you’ve been developing in Python for any length of time, you will have heard the acronym “PEP” mentioned quite frequently. More often than not you hear it when talking about Python code style, usually followed by the number “8”. So what is a PEP and why should you care? What is a PEP? PEP stands for “Python Enhancement Proposal”. They are used to describe and summarise the technical design and reasons for enhancements to Python and surrounding processes. ...
Interesting Features in Python 3.9 Nov 05, 2020 Here’s some features I found interesting in the release of Python 3.9 last month. You can see me talk about each of these in my latest video on youtube. Full Release Notes Merging and Updating Dictionaries PEP 584 - Dictionaries now have new union operators to work with them. Python 3.8: x = {'key': 'original_value'} y = {'key': 'updated_value'} print({**x, **y}) # Python 3.8 unpacking, kind of confusing Python 3.9: ...
Use Black to Format Python and get on with Your Life Nov 03, 2020 When I first started working in software development teams, I can remember heated discussions on pull requests on a few occasions. Typically these were when I or other developers reviewed code that didn’t meet formatting rules that were felt best for that piece of work. It didn’t matter whether the rules in question were in code, documented in a README or just held in a developers head, the simple fact that something was wrong on the project meant the author needed to make changes, be severely reprimanded and never make the mistake again. ...
How to Deploy a Django App to the DigitalOcean App Platform Oct 28, 2020 Digitalocean recently launched their App platform, a platform as a service (PaaS) which can be seen as a competitor to the likes of Heroku. As a Python developer, I wanted to see how easy it was to deploy a django app to App platform. It took me a little while to configure everything correctly so I thought I’d go through some of the points that tripped me up here. I’ve been looking for some time for a relatively simple method for deploying my projects, but I also want to use a pattern where my repo is the primary source of truth for my app. ...
Publishing to PyPI Using Github Actions Oct 23, 2020 In creating my first package on PyPI, I realised that many of the tasks I’d want to do on a subsequent publish would be repetitive. If I wanted to push out a simple fix, I wanted to automate away those tasks so I could focus on my code rather than a sequence of repetitive steps. Github actions is a simple way to do this and has given me the ability to quickly push out changes without lots of manual work. ...
Publishing a Package to PyPI with Poetry Oct 20, 2020 I recently published my first ever package to the Python Package Index (PyPI). The process was particularly novel for me as it meant my first ever use of the Poetry package management tool. If you happen to work in a production studio that uses ftrack and is now working remotely, you might even want to take a look at it as it enables sharing of assets using the Simple Storage Service (S3) from Amazon Web Services. ...
Purpose Dec 06, 2018 I’ve been thinking recently about purpose for Nifty Digits and myself, reviewing the clients I’ve done work for in the past and that work which I’ve felt most fulfilled by. I’ve straddled a path between web/pipeline developer thus far - so it’s fairly difficult to pin down what I do in a single mission statement. A more enterprising developer may well have done that as part of a business plan when they first started. ...
Unhealthy Comparisons Nov 21, 2018 As we nearing Christmas, we’re met with the familiar annual trickle of uplifting, heartwarming adverts that show just how wonderful your world will be if only you would buy your gifts from a particular retailer. After several weeks of this I’m already feeling bad for thinking our simple, paired down family Christmas experience might just not compare and wondering how anyone can’t help but feel any different after two months of constant commercial brainwashing. ...
My Web Development Stack in 2018 Nov 07, 2018 Over my time as a web developer, I’ve jumped between many frameworks and languages, attempting to find ones that work well for me. This seems to be pretty typical for developers who always have a take on the latest trend, either to quickly adopt or criticise it. I really wanted to be a member of the Ruby crew for a time and ended up buying multiple copies of “Agile Web Development with Rails”, before having the opportunity to really apply it to a project and disposing of them because the material was outdated. ...
What’s in a name? Oct 16, 2018 I usually get one of two looks when I announce the name of my company as “Nifty Digits”. Either a “Ah, I like that” or a raised eyebrow. Generally, it’s the person latter in years who might raise an eyebrow. When I picked the name, I was still a PhD student at University and wanted something that “sounded technical (digits), but also sort of British (nifty)”. I also was heavily influenced number of web design bloggers at the time, particularly Dan Cedarholm’s blog “Simple Bits”. ...