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.
- 18 Posts
- 13 Comments
Dominik Chrástecký - Blog@chrastecky.devOPMto Programming@chrastecky.dev•New in PHP 8.5: Marking Return Values as Important2·3 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 Important3·3 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 Ugly1·4 months agoAsi bude lepší použít můj Lemmy účet (@rikudou@lemmings.world), 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 Ugly1·4 months agoI’ll check it out, thanks!
Dominik Chrástecký - Blog@chrastecky.devOPMto Technology@chrastecky.dev•ActivityPub: The Good, the Bad and the Ugly2·4 months 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 Ugly3·4 months 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 Ugly2·4 months 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 Ugly1·4 months agoTaky veselé Velikonoce! :)
Dominik Chrástecký - Blog@chrastecky.devOPMto Technology@chrastecky.dev•ActivityPub: The Good, the Bad and the Ugly3·4 months 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 Ugly3·4 months agoI didn’t! But now I do :) Joined!
Dominik Chrástecký - Blog@chrastecky.devOPMto Programming@chrastecky.dev•Transpiling PHP for older versions1·6 months agoHmm, that build number would definitely be better! I tried adding another level (like 1.0.0.84) but that didn’t work. I’ll try it with the build numbers.
I wrote a GitHub workflow that transpiles it on release and tags each transpiled version, then pushes those tags to the repo. Packagist automatically fetches tags, so it gets them automatically.
For example, the tag v2.7.082.
Dominik Chrástecký - Blog@chrastecky.devOPMto Gaming@chrastecky.dev•Persistent packages on Steam Deck using Nix1·4 months agoYou mean the blog post I wrote myself and published on my ActivityPub enabled blog? That kind of “spam bot”?
I 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.