I’m a software developer, and I’m also a gamer. Most of us who grew up with Lego love playing Minecraft, because you never run out of bricks to build within Minecraft. It’s an amazing game. But it can also be frustrating at times. This article explains how I solved one of those frustrations using Python.Continue reading
As I sort of implied in yesterday's blog post, Making an online fantasy game for the visually impaired, making a MUD - a text-based MMORPG - has been my white whale since 1995. Therefore, I have now (again), against better judgement, decided that I will pursue this whale. In this post, I will explore how and why I want to do this.Continue reading
Lately, I've been toying with the idea of making an online fantasy game (written in Python, obviously) which anyone with an internet connection can play, but which also specifically caters to the blind or otherwise visually impaired who uses a screen reader to have their computer read text out loud to them. Given how many projects I'm already involved with, this is unlikely to ever happen. Nevertheless, it's an interesting thought to experiment with. Follow along, as I explore the idea of how this would work.Continue reading
In the first article in this series,
we looked at how simple it is to add automated tests with the
doctest module to your Python code. In this article, we'll expand on
that by adding a simple
git configuration which makes it impossible
to commit your Python files if their tests fail. This article assumes
you are using Linux, but can be adapted for other operating systems.
I've added support for Disqus comments on all pages of the site, to enable discussions and asking questions.Continue reading
I have written and posted the first four parts of a tutorial called Python for Absolute Beginners and Experienced Programmers in the new Tutorials section. The tutorial aims to be easy to follow even if you never programmed before. Each part also contains a "Short version" for people with experience in other programming languages that don't need to have the concept of "if" statements explained to them, but rather just need to know the Python syntax for them.Continue reading
This year's PyCon Sweden will be an entirely online affair due to the current covid-19 situation, and it will be held during the 12th and 13th of November.Continue reading
Doctest is a really clever builtin Python module which allows you to embed automated tests in documentation strings. If you're somewhat new to Python and that sounds complicated - it isn't. It is very easy to set up; I will show you how.Continue reading
The short version is as follows:
Mastodon is a Twitter-like social network, and the Fediverse is a network of social networks.
But let's also delve into the slightly longer version below.Continue reading
In order to provide some contents for the Python Värmland website, I've decided to start writing about some of the Python projects that I'm working on. If you have a project that you'd like to post about here, please let me know and we'll make it happen.
I've been interested in chatbots - software that uses a chat interface as its primary interface - since the mid 90's. Back then, I was writing IRC chatbots in C. And when the Ironman movie came out with the main protagonist's "Jarvis" AI, my interest was rekindled. I decided to write my first Python chatbot, and thus, I created EnforsBot.Continue reading