Micha Pietsch
michapietsch.bsky.social
Micha Pietsch
@michapietsch.bsky.social
I make computers do as I say. − With a focus on the backend, experience in PHP, JavaScript, and Python, and an interest in TypeScript and Rust.
What The Alias, my fun Rust project, is coming along:
Today I actually needed to look up an alias I couldn't remember. So here's search now in v0.2! 🥳
github.com/michapietsch...
December 19, 2025 at 7:48 PM
Small Rust project: Remind me of a random alias I defined.
Maybe I'll add spaced repetition, and then I'll be ready to go to town with aliases.
December 5, 2025 at 9:18 PM
It just occured to me that I can avoid boilerplate in Laravel tests when I disable database constraints:

public function test_create()
{
DB::statement('SET FOREIGN_KEY_CHECKS=0;');
Project::create(['customer_id' => 12345]);
$this->assertSame(12345, Project::sole()->customer_id);
}
October 28, 2024 at 11:47 AM