Dominik Chrástecký - Blog
I’m a developer and an architect with ~10 years of experience. My languages of choice are PHP (Symfony), C#, Go and Typescript. With a tiny bit of Java and C++ here and there. I often write open source libraries, you can find my work on my GitHub. I started this blog for 3 reasons: I’ve wanted to start a blog for the last 15 years but never had time, I wanted a personal place where I can share whatever’s on my mind, and I wanted to create something that uses ActivityPub.
- 21 Posts
- 17 Comments
Dominik Chrástecký - Blog@chrastecky.devOPMto
Programming@chrastecky.dev•Fun with PHP: Changing Readonly Properties and Other Shenanigans
1·5 months agoUpdated the article, thanks! Wouldn’t really say that’s a stupid addon, though, the expected way to use readonly properties from other languages is assign the value directly (impossible in PHP) or inside the constructor (or other mechanisms that are only available during object creation, like C# initializers etc.).
Dominik Chrástecký - Blog@chrastecky.devOPMto
Programming@chrastecky.dev•New in PHP 8.5: The Pipe Operator
1·9 months agoOh, right, that didn’t occur to me. Well, guess I got used to it eventually. But yeah, the
already does way too many things in PHP.
Dominik Chrástecký - Blog@chrastecky.devOPMto
Programming@chrastecky.dev•New in PHP 8.5: The Pipe Operator
1·9 months agoI would’ve preferred
?, butis fine, IMO.
Dominik Chrástecký - Blog@chrastecky.devOPMto
Programming@chrastecky.dev•New in PHP 8.5: Asymmetric Visibility for Static Properties
1·10 months agoI like it as well, recently had one use case where it would have been the best solution, sadly php-cs-fixer chokes on that so I had to do it with property hooks.
Dominik Chrástecký - Blog@chrastecky.devOPMto
Programming@chrastecky.dev•New in PHP 8.5: Marking Return Values as Important
2·11 months agoSame, but given how seriously they take BC breaks, I don’t really see it happening. Well, at least we have mature tooling to avoid having horrible code in production code-bases.
Dominik Chrástecký - Blog@chrastecky.devOPMto
Programming@chrastecky.dev•New in PHP 8.5: Marking Return Values as Important
3·11 months agoWell, that’s historical, if PHP was being designed today, I think a lot of the things would look very different. As everything since version 7.x, this is a step in the right direction of making the language modern and safer to use.
Like, this is still PHP, both of these are equally valid:
<?php function hello(string $name): string { return "Hello, {$name}!"; } function hello($name) { return "Hello, $name!"; }So anything that makes it possible to write a good, clean code is a great addition, IMO.
Dominik Chrástecký - Blog@chrastecky.devOPMto
Technology@chrastecky.dev•ActivityPub: The Good, the Bad and the Ugly
1·1 year agoAsi bude lepší použít můj Lemmy účet (@[email protected]), tohle je můj blog a vesměs není použitelný na komentáře mimo moje vlastní příspěvky, nic jiného se mi tu nezobrazuje.
Dominik Chrástecký - Blog@chrastecky.devOPMto
Technology@chrastecky.dev•ActivityPub: The Good, the Bad and the Ugly
1·1 year agoI’ll check it out, thanks!
Dominik Chrástecký - Blog@chrastecky.devOPMto
Technology@chrastecky.dev•ActivityPub: The Good, the Bad and the Ugly
2·1 year agoI must admit I always forget XMPP exists (which seems to be a common trend). It doesn’t support e2e, right? That doesn’t really make it useful in modern times anymore (in my opinion).
Dominik Chrástecký - Blog@chrastecky.devOPMto
Technology@chrastecky.dev•ActivityPub: The Good, the Bad and the Ugly
3·1 year agoThanks! I’m not aware that any Fediverse software actually allows that, but hey, might be worth testing out what each software thinks about liking a like.
Dominik Chrástecký - Blog@chrastecky.devOPMto
Technology@chrastecky.dev•ActivityPub: The Good, the Bad and the Ugly
2·1 year agoKinda, but in a really weird way, nothing is getting standardized and everything is a de-facto standard (or not, especially Mastodon devs don’t really care about the rest of Fediverse), which is not good for development.
Dominik Chrástecký - Blog@chrastecky.devOPMto
Technology@chrastecky.dev•ActivityPub: The Good, the Bad and the Ugly
1·1 year agoTaky veselé Velikonoce! :)
Dominik Chrástecký - Blog@chrastecky.devOPMto
Technology@chrastecky.dev•ActivityPub: The Good, the Bad and the Ugly
3·1 year agoOne of my favourite xkcd images! And yeah, creating another competing standard would suck, what’s needed is more of a slow evolution towards a sane standard.
Edit: Didn’t notice your edit before. Well, I think sending private messages has been part of social media when before it was called social media, so missing that functionality feels like it would unnecessarily hold the Fediverse back.
As for encryption, I believe it is needed in some form because stuff like GDPR and other privacy laws might as well destroy the Fediverse if some bureaucrat decides they want to look into it.
Dominik Chrástecký - Blog@chrastecky.devOPMto
Technology@chrastecky.dev•ActivityPub: The Good, the Bad and the Ugly
3·1 year agoI didn’t! But now I do :) Joined!
Dominik Chrástecký - Blog@chrastecky.devOPMto
3D printing@chrastecky.dev•OpenSCAD configurable calendar 3D model
3·1 year agoBy the way, as mentioned in the post, if anyone can recommend a good algorithm to calculate Easter, let me know!
Dominik Chrástecký - Blog@chrastecky.devOPMto
Gaming@chrastecky.dev•Persistent packages on Steam Deck using Nix
2·1 year agoYou mean the blog post I wrote myself and published on my ActivityPub enabled blog? That kind of “spam bot”?
I’d argue there’s no reason ever to actually use it in production. This is such a horrible hack that it has no place outside dicking around for fun.