HTML Templates for Developers

HTML Templates for Developers

If you asked me, I’d always rather classify myself as developer, and not as web designer. In fact, looking at my background, I really come from systems development, working with C and even assembly. Meanwhile, I mostly write Python stuff, but inevitably, I came to the point where I coded on a web application. Working on the backend was not that hard a transition – all the things I’m used to and have grown to are there: clean code structure, version management via git, unit tests, continuous integration and automated deployment are my best friends. So…

Read More

Colours in Django Models

Colours in Django Models

Colours are quite a common property to real world objects. So naturally when building web applications, sooner or later one encounters the need to assign a colour attribute to an object. For Django developers, this usually means adding a models.CharField to their model, ready to capture the colour’s hex code. Technically this works pretty well, as those hex codes can directly be used in HTML style attributes, embedded SVG drawings, etc. However, setting colour values via text input widget is quite tedious. On the frontend side, various libraries offer quite elaborate solutions for integrating nice colour picking…

Read More

Pythonic Distance Conversion

Pythonic Distance Conversion

When dealing with distances or lengths, it’s a common problem to convert values between all the different units available out there. Of course, converting itself is a less than complicated simple floating point division or multiplication, depending on how values and conversion factors are stored internally. However, maintaining conversion factors all across a project is a tedious task, and Python has some good means at hand to simplify our life. Before entering into implementation details, let’s have a look at some general rules that make life easier when dealing with distances or lengths (or any other…

Read More

GitFlow Groundhog Day

GitFlow Groundhog Day

Yes, this is all over again the old discussion about what’s the best branching model for projects using Git as their version control system. I know, there are countless blog posts (e. g. 1, 2, or 3) about that topic out there…​ yet, I feel most of the discussion is focused on projects with continuous deployment (i. e. mostly web applications), whereas classical desktop software with classical release cycles are rather underrepresented. First, some thoughts on what I actually need, before creating any new ideas others put already in the bin due to being unfit… When…

Read More