Thiemo Mättig

Thiemo Mättig

MediaWiki and the extensions I'm working on finally switched from PHP 5.3 to 5.5 a few months ago. I wrote a blog post back then, summarizing what awesome things PHP 5.4 and 5.5 give us: Short array syntax and the ::class keyword, to name just the two most important. But what will the next steps give us?
Weiter lesen …
Kommentar hinzufügen
»Sehr geehrte(r) Herr Mättig, haben Sie sich bereits für paydirekt registriert? […] Einmal im Online-Banking für paydirekt registriert, zahlen Sie einfach mit Benutzername und Passwort.« Ein PayPal-Konkurrent, betrieben von deutschen Banken? Na gut. Und wo kann ich damit bezahlen? Lieferando? eBay? Zalando? Cyberport? Nein? Na dann.
Kommentar hinzufügen
(bereits 2 Kommentare)
I finally dug into the C source code of PHP's strtotime function and DateTime class, which is just a fancy way of doing the exact same as strtotime. The problems I have, for years now: Why does strtotime( '12:00:00' ) return 12 o'clock on the current day and not, let's say, 12 o'clock on January 1st 1970, which is when the Unix epoch started? And why on earth does strtotime( '2015-02-29' ) return March 1st? It turns out all this is strongly tied to the crazy feature set of this piece of legacy software, the most relevant lines of code being these three. There is no switch to turn it of, and most importantly: it's impossible to report this as a bug, because it is none.
Weiter lesen …
Kommentar hinzufügen
I was doing a bit of Google search for my discontinued maettig.org domain. It's some weeks now that I moved all contents to maettig.com. (In case you are wondering, there was not much: a placeholder and my Minecraft gallery.) I was curious: Did other people referenced anything on maettig.org? As it turns out, the only interesting thing (besides my gallery) are my circle and sphere blueprints for Minecraft I wrote in 2011. I found two tutorial videos on YouTube that are actually based on my tool.
Kommentar hinzufügen
For your information, Google and whoever searches for this, the domain wege-zur-mode.de is no more. »Wege zur Mode« is a fashion brand my sister build in design school, but she never used it. Later she was building her much stronger »Gudekind« business and decided against the older brand, which was nothing but a hard redirect since then.

I will also discontinue the maettig.org domain. My original idea was to move all my private stuff over there and use maettig.com for business purposes. This never happened and is unlikely to happen. Here is a snapshot of what the domain contained last. If you want to have maettig.org, please contact me. I'm happy the Dr.-Gregorius-Mättig-Stiftung said yes when I asked them if they want the domain.

PHP 5.5 is weird:
use NonExistingNamespace\NonExistingClass;
$className = NonExistingClass::class;
var_dump( $className );
Result: string(37) "NonExistingNamespace\NonExistingClass". What this means: PHP does not care if the class exists. It does not care if a class mentioned in a use clause exists and it does not care if ::class is used on an existing class. A use clause does nothing but create an entry in a string map, mapping short to full qualified class names. The ::class syntax does nothing but returning a string from that map. That's all.
(bereits 2 Kommentare)

[ Ältere Einträge → ]