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
-
C0D4681387yDon’t be someone I almost slapped once who would rather then add TRUE would run the object through an recursion function to produce the array “because it was better”🤦♂️
-
C0D4681387y@linuxxx haha I know right!
I gave up trying to understand and just removed it on the next commit 😂
Sometimes I think the easy way is intimidating to some people. -
Or parsing a JSON 'string' in JavaScript that's already been parsed and wondering wtf is wrong for an hour.
Efffff that and thank you baby Jesus for being born in a couple days, I'm now broke and yes I will build your WP site for $2/hr -
juunas1637y@linuxxx Can you explain how having to check if an error occurred during decoding through a separate function when the language supports exceptions is awesome?
-
@juunas I got very clear error messages, it was just related to my own errors rather than PHP's ones. The function I called in the way I did was perfectly valid even without that parameter, I just forgot that the parameter was needed to get an array instead of an object.
Related Rants
-
cdrice105"You gave us bad code! We ran it and now production is DOWN! Join this bridgeline now and help us fix this!" ...
-
MoboTheHobo35My Friend: Dude our Linux Server is not working anymore! Me: What? What did you do? My friend: Nothing I swe...
-
tommy15Right now someone at Google is coding something useless for us to laugh at on April Fools.
I just spent an hour debugging as to why a fucking json_decode STILL PRODUCED OBJECTS.
.
.
.
.
.
Oh right, I need to set a second parameter as true.
😐
rant
fml