Dominik Chrástecký - Blog

u/dominik@chrastecky.dev
22 posts · 17 comments

Recent posts

Recent comments

Updated 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.).

Well, 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.

Asi 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.

Kinda, 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.

One 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.