4 ms·
PsySh I’ll have to check this out. Though not popular php can be a surprising decent scripting langauge.
by acomjean 2y ago
PsySh
I’ll have to check this out.
Though not popular php can be a surprising decent scripting langauge.
- dylan604 2y agoThere were many many times I'd start writing a bash script, but then switch it to a PHP script. I've done this so many times that now I just start writing in PHP.
- cess11 2y agohttps://psysh.org/ https://psysh.org/ It's very popular, as in a lot of businesses use it, it's just not fashionable. I think it's a great tool to have. It had gradual typing before it was cool. You can type in like a page of code including the layout and render whatever in a PDO-supported database on a web page, served by the builtin web server, which is great for data exploration and things like SQL optimisation. At the moment I'm handling some data flows and conversions in a project with something like a terabyte of email and office documents that need to go into RDBMS, because there are some liberally licensed lightweight libraries (in contrast to the bulky stuff in Jakarta-land) and the performance is good enough to not be a bottleneck. Edit: And when a library isn't good enough, I can usually trivially fix or extend it because it's in a familiar language and written by a simple minded person like myself. There's a degree of clunkiness and incoherence in built-in API:s that might be off-putting at first but the included batteries and PsySH make for a quite decent tool anyway.