Today in Reasons Gemma Hates `final`: https://tomasvotruba.com/blog/2019/03/28/how-to-mock-final-classes-in-phpunit/
tfw you want to refactor a thing and you go to write tests for it AND THERE ARE ALREADY TESTS FOR IT #php
Renamed some vars in a #PHP shell script. Went to rename the last instance, but the IDE reported it was already defined. Checked the definition and ended up deep in an un-namespaced Composer dependency.
Namespace your packages, folks.
Hilarity from the #PHP 7 migration: unexpected fun with json_encode() and floating point precision!
(In 7.1, json_encode() started using the serialize_precision setting instead of the precision setting for floating point output. precision default is 14; serialize_precision default is 17. 17 is apparently long enough to display how bad computers are at decimals.)
I don't think I ever did one of these and there's 🍍 all these new people 🍍 so: #introductions
I'm mostly a software engineer and #videogamer, with tangents to #cycling, failing to learn #Norwegian, and otherwise wasting a perfectly good B.Mus in #violin performance. I was a #moonkin (SERVER FIRST ALGALON 10), and now I'm a #Guardian.
programmer, (former) moonkin, nasty woman, geek
This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!