[-] Olissipo@programming.dev 1 points 2 years ago

In case you still can't load the image, for the largest width the JPG file has 229.9KB, WEBP has 123.5KB, AVIF has 72KB.

[-] Olissipo@programming.dev 2 points 2 years ago

As long as optional parameters are placed last, I don't see why not.

PHP8's named parameters lessen the pain of using a function with optional parameters spread around, but I still stick to that rule.

[-] Olissipo@programming.dev 1 points 2 years ago

Sure, but even in those "few cases" Testing will get them soon.

I did read at some point that Testing may receive security updates later than stable, might be in those cases in which backports come straight from unstable.

[-] Olissipo@programming.dev 1 points 2 years ago

I don’t recommend going for (Debian’s/Devuan’s) testing (branch) as it targets a peculiar niche that I fail to understand; e.g. it doesn’t receive the security backports like Stable does nor does it receive them as soon as Unstable/Sid does. Unstable/Sid could work, but I would definitely setup (GRUB-)Btrfs + Timeshift/Snapper to retain my sanity.

From https://backports.debian.org/ :

Backports are packages taken from the next Debian release (called "testing"), adjusted and recompiled for usage on Debian stable

So by definition, security backports in stable are present in Testing in the form of regular packages, right?

[-] Olissipo@programming.dev 2 points 2 years ago

Makes sense, thanks.

[-] Olissipo@programming.dev 1 points 2 years ago

That's a valid opinion. And I admit that at some point you must move to some form of client-side rendering.

I still haven't (for some admin panels too, and websites), so I don't feel the need to switch.

[-] Olissipo@programming.dev 1 points 2 years ago

Aren't you only saying, indirectly, that server-side rendering is "antiquated"?

Unless you mean that mixing logic with templates is bad, in which case I agree.

[-] Olissipo@programming.dev 1 points 3 years ago* (last edited 3 years ago)

May be a coincidence, but it stopped launching for me too. Worked Monday and Tuesday, yesterday I didn't try to play, today it didn't work.

Tried:

  • running "verify integrity of game files"
  • forcing Proton,
  • clearing shader cache
  • attempted various launch options, like vulkan, fullscreen, and windowed
  • update all flatpaks (since I installed steam through flatpak)
  • reboot
[-] Olissipo@programming.dev 1 points 3 years ago

you can easily forget to catch it and handle it properly

Even if I coded the form by hand and that happened, it's on me, not on the programming language.

But I don't, I use a framework which handles all that boilerplate validation for me.

[-] Olissipo@programming.dev 1 points 3 years ago

When you say user, you mean a user of a function? In that case PHP would throw a TypeError, and presumably only happens when developing/testing.

If you mean in production, like when submitting a form, an Exception may be thrown. In which case you catch it and return some error message to the user saying the date string is invalid.

[-] Olissipo@programming.dev 1 points 3 years ago

My point is, you won't ever try. You'd only use "weak" variables inside the function you're working on.

It's explicit when you absolutely need it to be, when the function is being called and you need to know what arguments to pass and what it'll return

[-] Olissipo@programming.dev 1 points 3 years ago* (last edited 3 years ago)

I like it in modern PHP, it's balanced. As strict or as loose as you need in each context.

Typed function parameters, function returns and object properties.

But otherwise I can make a DateTime object become a string and vice-versa, for example.

view more: ‹ prev next ›

Olissipo

0 post score
0 comment score
joined 3 years ago