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.
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.
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.
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?
Makes sense, thanks.
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.
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.
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:
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.
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.
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
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.
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.