🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.vms
Article #112

Re: PHP "Features"

#112
From: Dan Cross
Date: Tue, 27 Oct 2026 22:56
44 lines
2759 bytes
In article <11bquar$1pp8h$3@dont-email.me>,
Simon Clubley  <clubley@remove_me.eisner.decus.org-Earth.UFP> wrote:
>On 2026-10-24, Dan Cross <cross@spitfire.i.gajendra.net> wrote:
>>
>> I assume you've seen this?  I think I may have posted it a
>> couple of days ago.
>>
>> https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/
>>
>
>I had forgotten about this and it sums up things better than I can.
>
>BTW, I have yet to see someone propose a Rust-style scripting
>language as a replacement for PHP. :-)
>
>On a more serious note, I wish Python had taken hold instead of PHP
>in the web server world. I get on far better with Python than PHP and
>Python is a much more general purpose language that is the scripting
>language in all kinds of applications.

Heh.  I mean, if one wants that whole model of intermixing
markup and programmatic behavior, then I guess the options are
still rather limited.

I suspect, though, that that's not the way most people are doing
front-end development anymore; I suspect if one wanted to be
serious about it, one would do something like programmatically
build a typed content tree mirroring the DOM (you could have
`div` nodes and the like), and then render into a textual
representation, or just do it all on the client and manipulate
the DOM directly.

>Oh, and about the bit in the above URL about calling a PHP function
>and passing an array as its arguments, have a look at the splat operator
>introduced in current PHP versions to unpack an array as an argument list.
>
>Had cause to use it recently (I sometimes have to write PHP code to
>interface with things) and it appeared to work for me. It may do what
>you need in some circumstances instead of call_user_func_array().

Sounds vaguely like the, `apply` function from Lisp.

	- Dan C.
Technical Details
Message-ID: <11bra7h$knp$1@reader2.panix.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail
References: <11bcbi1$k068$1@dont-email.me> <11bi7bg$2mdi4$1@dont-email.me> <11bipfv$190$1@reader2.panix.com> <11bquar$1pp8h$3@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail
From: cross@spitfire.i.gajendra.net (Dan Cross)
Newsgroups: comp.os.vms
Subject: Re: PHP "Features"
Date: Tue, 27 Oct 2026 22:56:49 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <11bra7h$knp$1@reader2.panix.com>
References: <11bcbi1$k068$1@dont-email.me> <11bi7bg$2mdi4$1@dont-email.me> <11bipfv$190$1@reader2.panix.com> <11bquar$1pp8h$3@dont-email.me>
Injection-Date: Tue, 27 Oct 2026 22:56:49 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
	logging-data="21241"; mail-complaints-to="abuse@panix.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: cross@spitfire.i.gajendra.net (Dan Cross)