News for hackers. Stuff that matters.
Re:My PHP Problems by hiAndrewQuinn on Monday February 19, 2024 @07:16AM (#39428932)
PHP is probably like Excel, in that is is really helpful from a raw productivity standpoint to be good at it, but you really don't want other people to know that you're good at it.
Re:My PHP Problems by bemusedthrow75 on Monday February 19, 2024 @07:26AM (#39429007)
Mmm. It really depends on whether you have the scope to start your projects and stay in control.
Re:My PHP Problems by mschuster91 on Monday February 19, 2024 @07:33AM (#39429060)
IME, that also makes PHP worth it for shell scripts. It's miles better than the common baseline that's bash/perl... but once word gets out, people will ask you to rewrite their 30 kLOC sh monstrum into something readable...
Re:My PHP Problems by naranha on Monday February 19, 2024 @08:36AM (#39429565)
idk, when I want productivity I go with nodejs these days. lodash for some quick data crunching and pg or mariadb for db access using promises simply beats native php functions. with express you can spawn a http server in under 10 lines, while with php you need to setup apache/nginx or docker.

at some point in the past PHP was the most productive tool for some quick & dirty coding, but not anymore for me.

Re:My PHP Problems by withinboredom on Monday February 19, 2024 @09:35AM (#39430141)
I recommend checking out FrankenPHP, where you can spin up a production php server with a single cli command, or compile your php into a self-executable binary.

I’m a contributor over there.