Readit News logoReadit News
geek_at commented on WebDAV isn't dead yet   blog.feld.me/posts/2025/0... · Posted by u/toomuchtodo
rpdillon · 2 months ago
I use it all the time to mount my CopyParty instance. Works great!
geek_at · 2 months ago
Copy party is really great. Using it to share files with my clients as well as for my remote media gallery
geek_at commented on Apple M5 chip   apple.com/newsroom/2025/1... · Posted by u/mihau
drnick1 · 2 months ago
A lot of Apple hardware is impressive on paper, but I will never buy a Mac that can't run Linux. I simply don't want to live in Apple's walled garden.

Then there is the whole ARM vs x86 issue. Even if a compatible Linux distro were made, I expect to run all kinds of software on my desktop rig including games, and ARM is still a dead end for that. For laptops, it's probably a sensible choice now, but we're still far from truly free and usable ARM desktop.

geek_at · 2 months ago
I'm still looking for a decent ARM laptop that runs linux well. I have my eye on one from lenovo but linux support is still not the best
geek_at commented on How I block all 26M of your curl requests   foxmoss.com/blog/packet-f... · Posted by u/foxmoss
geek_at · 3 months ago
btw you opensourced also your website

~$ curl https://foxmoss.com/.git/config [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] url = https://github.com/FoxMoss/PersonalWebsite fetch = +refs/heads/:refs/remotes/origin/ [branch "master"] remote = origin merge = refs/heads/master

geek_at commented on China bans one-pedal driving in default modes by 2027   asiaict.com/icv/10236.htm... · Posted by u/jerlam
bluefirebrand · 3 months ago
It doesn't sound scary to me, it sounds stupid and uncomfortable though

You can't just take your foot off the accelerator and coast, even downhill, is that right?

No thanks

geek_at · 3 months ago
That's what ACC is for
geek_at commented on Nginx introduces native support for ACME protocol   blog.nginx.org/blog/nativ... · Posted by u/phickey
klysm · 4 months ago
How does NGINX fit into that though?
geek_at · 4 months ago
I am using a bash script on my vps to get a wildcard certificate and just scp the cert to my other reverse proxies. Some using nginx but some Caddy or traefik

Wrote an article how to set it up https://blog.haschek.at/2023/letsencrypt-wildcard-cert.html

geek_at commented on URL-Driven State in HTMX   lorenstew.art/blog/bookma... · Posted by u/lorenstewart
johnisgood · 5 months ago
Major differences that I can think of between the two are (with regarding to warts and ease of use):

PHP 8 uses exceptions with a unified Error hierarchy, there are type errors, division by zero, certain parse errors and so on.

PHP 8 has strong support for static typing now, thank goodness.

PHP 8 introduces union types (int|float|null).

PHP 8.1 introduces intersection types (A&B).

PHP 8.1 added the "never" return type.

PHP 8 has less repetitive boilerplate.

PHP 8 has consistent function signatures now.

PHP 8 has consistent object/array syntax now (to be honest, some asymmetries remain).

PHP 8 has named arguments for clarity and flexibility.

PHP 8 has the nullsafe operator which simplifies deeply nested null checks.

PHP 8 has arrow functions which makes closures concise and easier to use.

PHP 8 has attributes, e.g. "#[Route("/users")]".

PHP 8 has "match" expressions which is a more predictable, type-safe, and expression-oriented alternative to "switch".

PHP 8 has many more tools for testing and debugging (incl. static analyzers).

PHP 8 has many new functions (incl. utility functions).

PHP 8.1 introduces native enums.

PHP 8.1 has "readonly" properties for enforcing immutability.

PHP 8.1 has cleaner syntax for referencing callables.

PHP 8.1 has "fibers" which enables cooperative multitasking and is a foundational building block for upcoming async/await features.

Global namespace pollution has been pretty much resolved (Composer autoloading[1]).

There are other ecosystem-level improvements such as PSR standards[1], better async story, etc.

This list is non-exhaustive. These are just the improvements that come to mind off the top of my head so I probably missed a lot of other major improvements. PHP 8+ is definitely much easier to use and they greatly reduced PHP's warts. There may be some inconsistencies left here and there, but they are not a deal-breaker IMO, if you even run into them.

[1] https://www.phptutorial.net/php-oop/php-composer-autoload/ (I do not use "dump-autoload"), https://github.com/php-fig/fig-standards/blob/master/accepte..., https://www.php-fig.org/psr/psr-4/ (https://www.php-fig.org/psr/)

---

I strongly recommend taking a fresh look at PHP 8+. It is very different from the PHP you have once known. It is "modern" now. There are lots of deprecations and removal of old warts. I did not like PHP as much ages ago, but it was a pleasure to use PHP 8+.

If you are looking to (re)learn PHP, the book “PHP & MySQL: Novice to Ninja” is a good starting point[1]. There are many other, high-quality books and resources as well.

[1] Available on libgen. The source code examples from the book are available on GitHub: https://github.com/spbooks/phpmysql7.

---

If you have any specific warts or whatnot, or if you want more resources, please do feel free to let me know.

---

I wrote this comment on my phone, so it is not as detailed and it is not structured as well, but I hope that it will still provide some insight into the differences between legacy PHP and modern PHP.

Happy to answer any questions!

geek_at · 5 months ago
Wow very in depth comment. Maybe I'll spin up a dev container and play around with php
geek_at commented on Dumb Pipe   dumbpipe.dev/... · Posted by u/udev4096
qudat · 5 months ago
At pico.sh we built something similar but using SSH: https://pipe.pico.sh
geek_at · 5 months ago
in a direct benchmark against dumbpipe. What do you think the results would be like?

u/geek_at

KarmaCake day3602March 5, 2015View Original