Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
PHP is flexible. You can't blame it for the apparent abhorrent trash monkey of a developer who took this route
-
C0D4681382yThis looks beautiful, maybe we should compare notes some time.
Ever seen an e-commerce built a mixture of procedural, functional and a couple of classes?
I don't know what you're complaining about, this thing uses static classes for crying you loud, that's miles ahead of the trash bin I reluctantly let live. -
@PonySlaystation @lbfalvy @C0D4 German Engineering™️ or as I called it in my old company: "Brauchbar zusammenprogrammiert in Germany".
-
sariel85312y@djeddiej I have seen so much code like this in PHP from so many developers.
It's because the language doesn't have a standard configuration that meets the needs of app development today. -
djeddiej852y@sariel what kind of standards are you looking for ? I am language agnostic , so curious … :)
-
C0D4681382y@sariel it most certainly does, most PHP devs just don't go out of their way to find them, nor does the typically YouTuber suggest learning them, or they've relied on Wordpress's docushitation as the original reference on how the language should be used.
How to use the language:
https://www.php-fig.org/psr/
How to test shit:
https://phpunit.readthedocs.io/en/...
What the other 2 don't cover:
https://phptherightway.com/ -
SQL could, on its own, make a query to check if that exists already. Why abstract it through code ?
Related Rants
It's a config file. This is illegal.
rant
php
phptsd
cmsofdoom