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
-
retoor82697dWas senior PHP coder but so outdated now. I had a lot of fun with it, but python is as language just a lot better in my eyes. I made php in python while ago. All python print statements rendering to template giving you the whole python language as template engine, just like php does. I'll make sure that this amazing idea won't have any future. On the molodetz graveyard with it.
-
Tayo8976dWhichever language you speak, how's your mom's basement looking nowadays? Been a while since I popped over
-
Not being able to send json arrays from PHP is where I gave up on it. No matter what you do, they always go out as a kv pair with the array index as the key. I hate having branching logic in my controllers just for WordPress.
-
@cuddlyogre JSON has always and will always be a pile of crap for serializing and deserializing. It's an obtuse format.
Doesnt matter how fast my DB/logic is if json gonna slow me down.
Still beats excel/xml/text formats in DX tho.
GraphQL is kinda nice in theory, but most implementations go rogue or are a hassle.
I do like grpc, but it's too niche/rigged to expose an API with it. -
@rootshell I cannot fathom such an opinion. It's a fantastic way to transmit data in a way that is human readable and editable and is easy to deserialize and read. This makes working with it trivial. Any kind of slowness associated with parsing it would solely be on whoever wrote the parser, and not the format itself.
The only place I can remotely agree is for instances where the user directly interacts with it like config files, but that was not what it was designed for. Even so, it's still very easy to work with.
The alternative is sending data in some kind of binary format that doesn't have to follow any kind of standard and is a pain to troubleshoot.
I would love to know what you would consider to be a superior alternative. -
@cuddlyogre really depends on usecase tbh. If its just some endpoint getting hit like sub 50 a second it's just whatever you feel like as long as the consumer is okay with it. But specifically deserializing json is slow generally speaking. Most languages drop down to soms c/asm impl to keep it somewhat speedy.
What's the most virgin language? I'm pretty sure no PHP coder ever had sex ever. We all know the story of that one PHP coder who got laid but we all know it's only a myth
rant