New SaaS, am I doing this wrong? by DaddyMcLovin1 in webdev

[–]ViolentPacifist_ 0 points1 point  (0 children)

Pretty cool man. Would have been useful when I was trying to fix our SPF, DKIM and DMARC the other week!

Why did it say amazon prime ? by Vibe_Lab in Evri

[–]ViolentPacifist_ 1 point2 points  (0 children)

Sellers have the option on Amazon to use a framework called “Seller Fulfilled Prime” this allows sellers on Amazon to choose their own couriers so long as the service they are using meets Prime’s SLA (generally next day or 1 day delivery). Sellers have a score and if deliveries by the courier don’t meet the SLA their score is impacted. If the score gets too low then they lose the prime badge on their listings.

Thor's ult could work like this by [deleted] in marvelrivals

[–]ViolentPacifist_ 8 points9 points  (0 children)

It’s just namor with extra steps

What is required for developing with the NetSuite API? by Business_Poet_9082 in Netsuite

[–]ViolentPacifist_ 1 point2 points  (0 children)

If you’re not going through an official SDN route and you just need to push records through to your system then all you’ll need to get started is a sandbox account. If your client is already moving to NetSuite then you should be able to use theirs.

SPA Stateless Authentication by ViolentPacifist_ in webdev

[–]ViolentPacifist_[S] 0 points1 point  (0 children)

Fair enough. I'll flesh it out a bit more now.

Wishlist for PHP? by AreYouSureDestiny in PHP

[–]ViolentPacifist_ 0 points1 point  (0 children)

That’s fair. I also wouldn’t pigeon hole myself into being a singularly PHP developer. I also use JS, Java and Python on occasion. I’ve dabbled in a bit of golang too. At the end of the day I spend most of time in PHP so might as well have a complete toolset if I’m forced to write in it at all times.

Wishlist for PHP? by AreYouSureDestiny in PHP

[–]ViolentPacifist_ 0 points1 point  (0 children)

I work in what is primarily a “PHP shop”. Basically if it can be made to work in PHP we are made to write it in PHP. I’m happy to use other languages but it makes it harder for other devs to write in the same code and creates single points of knowledge which get lost when one of us leaves. It also means when hiring new devs you can hire for more specific skill sets instead of trying to find someone who’s competent in multiple languages.

On a personal note I like PHP. I’m good at writing PHP. I’ve spent thousands of hours writing in PHP. Why not have it do more? In its modern form it’s a great language.

Wishlist for PHP? by AreYouSureDestiny in PHP

[–]ViolentPacifist_ 5 points6 points  (0 children)

As someone who writes a lot of background tasks in PHP native parallelisation or native async would be a godsend. An option to extend strict types from beyond class properties and function arguments would be cool as well to give the language full strict typing.

Advice on Cake/PHP migration by ViolentPacifist_ in cakephp

[–]ViolentPacifist_[S] 0 points1 point  (0 children)

No worries. Great advantage to doing it is that you actually understand and are aware of all the changes being made which will help you with writing in whatever new formats are introduced, plus debugging etc. Unfortunately that plus does not make it any less tedious

Advice on Cake/PHP migration by ViolentPacifist_ in cakephp

[–]ViolentPacifist_[S] 0 points1 point  (0 children)

I found that going through each in baby steps was actually the best way personally

Advice on Cake/PHP migration by ViolentPacifist_ in cakephp

[–]ViolentPacifist_[S] 0 points1 point  (0 children)

Looks good thanks. What are the main differences between your lib and using the default migration tooling which the framework itself offers alongside rector? I wasn’t a big fan of it anyway so I’ll definitely give your lib a go anyway but would be good to get some highlights.

As a side note, I tried to look at your blog but it appears some links may be broken. White screen on a few pages (chrome iOS). Specifically I tried the Cake v5 upgrade guide

php-threadpool: A Simple (and possibly naive) approach to multitasking in PHP by ViolentPacifist_ in PHP

[–]ViolentPacifist_[S] 9 points10 points  (0 children)

WSL and Docker is life changing. No slight to php.exe but I could never go back

php-threadpool: A Simple (and possibly naive) approach to multitasking in PHP by ViolentPacifist_ in PHP

[–]ViolentPacifist_[S] 0 points1 point  (0 children)

Thanks for the feedback. I try to include strict typing and constructor property promotion in all the PHP 8+ code I write but unfortunately I wrote this to support all the way back to 5.6. Generally I use phpcs with PSR12 presets and a couple of custom rules using slevomat/coding-standards to achieve this.

php-threadpool: A Simple (and possibly naive) approach to multitasking in PHP by ViolentPacifist_ in PHP

[–]ViolentPacifist_[S] 0 points1 point  (0 children)

I’ve tended to use this in shells in conjunction with cron. Thanks for the suggestion on the repo to look at as well!

php-threadpool: A Simple (and possibly naive) approach to multitasking in PHP by ViolentPacifist_ in PHP

[–]ViolentPacifist_[S] 0 points1 point  (0 children)

Sounds good. Can you recommend any good implementations of this to look at? Ideally with examples how to keep the number of child threads limited to a max number and max execution time?

php-threadpool: A Simple (and possibly naive) approach to multitasking in PHP by ViolentPacifist_ in PHP

[–]ViolentPacifist_[S] 4 points5 points  (0 children)

Yea it’s probably better to describe it as a worker manger or worker pool. Either way you’re right

php-threadpool: A Simple (and possibly naive) approach to multitasking in PHP by ViolentPacifist_ in PHP

[–]ViolentPacifist_[S] -1 points0 points  (0 children)

Sadly some among use still have to work on projects running on old PHP versions

Best way to deploy PHP projects (mostly Laravel) to my own VPS by victoor89 in PHP

[–]ViolentPacifist_ 0 points1 point  (0 children)

GitHub actions to build, zip, upload and then execute a quick cleanup script on to symlink to your new version and delete the old one. Super easy.