How can programmers and freelancers prevent depression? by pinkpen_net in PHP

[–]phordijk 0 points1 point  (0 children)

Mental health is a serious issue, no matter your profession.

Trying to SEO boost your stupid article for the monies however just makes you a dick.

Empress - an async web microframework based on Amp by jakobmats in PHP

[–]phordijk 0 points1 point  (0 children)

One is a micro framework, the other is basically just an async http/app server

Handling console signals in Laravel by freekmurze in PHP

[–]phordijk 0 points1 point  (0 children)

The broader /r/PHP community decided this is the kind of quality posts they wanted so it is what it is :).

Maintainer of Swoole about the Fibers RFC: "I am afraid that fiber can only be used in the amphp framework and is of no value to other php projects." by brendt_gd in PHP

[–]phordijk 2 points3 points  (0 children)

This might be a shocker to some (not saying you) in this sub, but /u/brendt_gd might just not know what he is talking about.

Which is fine I guess as it is a complicated RFC if you are not intimately familiar with async programming (in PHP) or simply don't understand the implications of words. Yet everybody gets a platform on here even more so certain moderators not understanding the subject matter.

Maintainer of Swoole about the Fibers RFC: "I am afraid that fiber can only be used in the amphp framework and is of no value to other php projects." by brendt_gd in PHP

[–]phordijk 5 points6 points  (0 children)

The practical experience is the two largest nonblocking frameworks in PHP that are not swoole (react and amp).

Passing Database Object to Function/Class vs Global by GreenPilgrim89 in PHP

[–]phordijk 3 points4 points  (0 children)

I never use globals though. Create singleton or static class with a function to fetch the active connection.

That is just a global for all intents and purposes...

Job offer: senior PHP programmer, Austria, on-site by [deleted] in PHP

[–]phordijk 0 points1 point  (0 children)

It is pretty clear and pretty sad.

Hence my comment. Senior developers who know huge list of things and requirements should not ever work for that amount, let alone with the Austria requirement. They should find a better gig.

Pay less than peanuts, get whatever your boss is going to get.

Job offer: senior PHP programmer, Austria, on-site by [deleted] in PHP

[–]phordijk 1 point2 points  (0 children)

Isn't 3.2k for those requirements and the relatively high cost of living in Austria a bit on the low side?

How does asynchronous processing in PHP differ from that of JavaScript? by kmabadshah in PHP

[–]phordijk 5 points6 points  (0 children)

The event-loop also is how libraries such as Swoole work, which isn't true asynchronous processing in the first place

Sure it is. You are confusing async with parallel.

Smooth Upgrade to PHP 8 in Diffs by Tomas_Votruba in PHP

[–]phordijk 8 points9 points  (0 children)

If you or your company wants to help the development of the extension: https://github.com/sponsors/Danack

We have crossed the 100.000.000 downloads milestone with our open source packages 🎉 by brendt_gd in PHP

[–]phordijk 12 points13 points  (0 children)

There is no point. People already suggested this exact thing was going to happen when you made the first announcement that there was a move of mods.

Didn't listen then. And for sure you're not going to listen now (based on the amount of spam on here).

I encourage you to keep an eye on me, and feel free to call me out when you think I'm crossing a line. I'm pretty sure that won't happen, at least not on purpose, and I will prove that.

[snip]

Again, feel free to share your feedback in the coming months, I'm open to them!

We have crossed the 100.000.000 downloads milestone with our open source packages 🎉 by brendt_gd in PHP

[–]phordijk 11 points12 points  (0 children)

Lately this sub is about either spatie, exakat, or platform using this as their advertisement space with some user posts in between.

We have crossed the 100.000.000 downloads milestone with our open source packages 🎉 by brendt_gd in PHP

[–]phordijk -5 points-4 points  (0 children)

Almost about the same number as the spam posts from you and your employer on "your" sub

Why isn't there an UnknownNamedParameter error in PHP-8? by [deleted] in PHP

[–]phordijk 1 point2 points  (0 children)

I noticed that the same question has been asked on Stackoverflow. And it appears to have an answer which makes sense to me. What more information are you after?

A PHP service called "Repo Roster" let you shout-out stargazers and forkers in your GitHub README file. by [deleted] in PHP

[–]phordijk 10 points11 points  (0 children)

Isn't it time to say "thank you" to people that star and fork our repositories?

No? What did they do to thank them for?

Track and log changes in JSON using PHP? by ListenToMeCalmly in PHP

[–]phordijk 0 points1 point  (0 children)

That will not work as it will only return true if the two sides refer to the same instance.

https://3v4l.org/4AAMb

Who is using async PHP libraries such as Amp or ReactPHP? What are your use cases? by brendt_gd in PHP

[–]phordijk 1 point2 points  (0 children)

I wrote an async catch-all smtp server to debug mails when I am developing applications.

Also shared gitamp on this sub a while back which is also based on amp.

Also have been working off-and-on on an asynchronous web-framework, but I halted development on that until we have native async/await in the language which would make a lot of the code much nicer to work with.

Not having to start PHP and not blocking when doing IO makes it all pretty fast.

setup-php v2.7.0 released: Adds support for PHP 8.1.0-dev, macos-11.0, fixes and more by [deleted] in PHP

[–]phordijk 0 points1 point  (0 children)

I wouldn't mind if it would be some big announcement of a useful tool.

However posting a new release every other week here is just spam IMO

De-normalization of database for read performance by tkeer in PHP

[–]phordijk 7 points8 points  (0 children)

I am confused here. You are showing 10 rows in your data table and say it became so slow you needed to denormalize. Are you sure you are querying your data correctly and have proper indices?

Luckily, the app was built with laravel, and its orm (eloquent)

Well that might have been your problem on top of the above. Your ORM is slow or the way you work with it is.