As a web developer, I like to use less and typescript to make css / javascript a little nicer to work with. Even nicer still is to have a process watch these files for changes, then automatically compile them on save, to make development as streamlined as if you were using …
read moreBlog Posts
Here you will find various writings on subjects which I deem interesting enough to write about. That typically includes web development, miscellaneous programming with python and the Godot game engine, and linux things.
If you wish to discuss anything you read here, feel free to open an issue over at the Github source of this blog.
Writing a Social Proof Service in Python and SocketIO
For the unaware, a social proof service is typically an externally-hosted SaaS product which, when integrated with a customer's website, displays a small notification card at the bottom of the screen whenever a person performs some action on that website, such as signing up for a newsletter or buying a …
read moreI Can't Find a Python Package Manager I Like
As I make more and more projects at work using our typical flask / peewee / uwsgi / nginx stack, I end up repeating a lot of the more boilerplate-y stuff.
One of these things is managing dependencies amongst multiple environments, namely development, CI / CD, and production.
Obviously python comes with pip to …
read moreHow to do Inter-Process Communication (IPC) w/ Python and Rust
The way in which two programs written in two different languages communicate with eachother (fancy name IPC) is something which has interested me for a while. I was under the impression that each language would have to specifically accommodate each other language individually.
Luckily this is not actually the case …
read moreRunning Flask Tests In Parallell with Pytest
I like having high test coverage when building websites at work, but the more tests I write, the slower the suite becomes to run. This not only could discourage other team members from running the test suites themselves, but it also increases the time it takes for CI/CD to …
read moreLearning a Compiled Language as a Python Fan
It's probably no secret that python is my favourite programming language. The speed at which you can get a complicated program up and running is amazing. My day job as a web developer is one of the places where python shines the most, and so I get to work with …
read moreHow to get Flask to auto-restart despite syntax errors
When developing a Flask application, the auto-reloader is incredibly helpful. Each time I edit a python file the server will restart, so that my changes are immediately implemented. However, there is still room for improvement, which is what I will briefly discuss and fix in this post.
First, for context …
read moreSome common python interview questions
My first job out of university was entirely LAMP, using Zend framework. However, I had always loved writing python, and when it came time to leave that job I was mainly looking for something which would let me use it.
As you can imagine, recruiters were slightly sceptical of my …
read moreHow we use Circleci and Ansible to Automate Deploying Flask Applications
At my workplace we like to use CI/CD to automatically deploy any changes to the master branch into production. This involves two main pieces of technology - Circleci and Ansible. <br><br> In this post I will be going over how we use these two pieces of technology to deploy a flask application.
read moreA Super Helpful Decorator For Peewee/Flask Unit Testing
Update
As of peewee version 3, the test_database context manager was removed, and models are instead bound to a new database via a bind method.
There is a comment by the author of Peewee over on a github issue providing a new way to achieve this.
I have adapted this …