Thiemo Mättig

Thiemo Mättig

I keep quoting the hilarious »Memorizing Six Git Commands – A Practical Guide« by @ThePracticalDev, because I find it so true. Quick, can you name more than six? It was about time I would list mine. So here they are, extracted from my Bash history, in alphabetical order:
Weiter lesen …
Kommentar hinzufügen
»Catch click events before the DOM is loaded«. This solution relies on jQuery, but can be rewritten to work without. The idea is to add onclick="return earlyClickHandler.call( this );" snippets to the HTML source where needed. This tiny function is guaranteed to be there, because it is part of the documents <head>. What it does is delaying these clicks until the load event happened. »Catching clicks with clickCatcher before your JavaScript files have loaded/events been applied« explains a very similar solution that works without messing with the HTML and performs better because it does not leave active onclick handlers in the DOM when they are not needed any more.
Kommentar hinzufügen
»They want people to be nice to each other, and they are kind of dragging us in the direction, some of us kicking and screaming, to be – you know – generally kind.« »20 years of Open Source – stories from the early days«, keynote at FOSS Backstage 2018 by Danese Cooper (PayPal).
Kommentar hinzufügen
(bereits 3 Kommentare)
Modetrends, die ich nicht verstehe:
Weiter lesen …
Kommentar hinzufügen
(bereits 9 Kommentare)
It must have been 2009 – eight years ago – when I stopped working on our Glow game project for various reasons. But I could never stop thinking of it. These days I finally made a backup of the abandoned Windows machine that still holds the development environment. I found tons of unreleased stuff, including large hero renderings of the in-game characters and enemies. But even if this is something I promised to release next, this is not where I wanted to start. Instead I dug up the tool chain I build in C# and Delphi 9: A generator for grass tiles, roots, debris and such. Others for waving flags, water falls and rain. A random map generator that is also capable of rendering nice overview maps. I updated all tools and fixed the most obvious reasons for them to crash, added examples, a build script for Mono on Linux (I love how that just works), as well as a CC-BY-SA license.

One thing I learned while doing this was that I changed the XML formats the game internally uses, shortly before I stopped working on the project in 2009. The change was totally worth it (I got rid of literally millions of string comparisons), but now I have levels as well as configuration files in two formats lying around, and basically my entire tool chain only supports the older one.

Don't do that. Think of the consequences first, map your tool chain, carefully plan the migration, and then do it fast. Don't wait eight years.

(bereits 2 Kommentare)
I'm still running Ubuntu 12 (don't ask), and wanted to try a Wacom Intuous Draw (CTL-490) tablet. For future reference, here is what I did.
Weiter lesen …
(bereits 1 Kommentar)
There are still some <img border="1"> in the photo section of my website, an HTML attribute that is deprecated since 17 years, I believe. To lazy to fix it I found a really nice way to make it feel like it's part of an up to date web standard: By adding something like img[border="1"] { border: 2px dashed red; } to my CSS I can turn it into a custom boolean attribute that enables whatever image border I want. Neat. Not entirely valid HTML 5, because the standard requires custom attributes to start with data-…, but works.

[ ← Jüngere | Ältere Einträge → ]

Impressum & Datenschutz