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
-
C0D4681465yThat's one way to do it.
I mean... it's not how I would spend my day, but if it works.... -
myss45285yLol that's deffo not how you parse JSON, prob done by someone who has no idea of even basic Javascript's internals..
-
C0D4681465yOk, looking at this closely, this is either a troll, or someone should not be allowed near a keyboard.
I mean json.stringify( eval() ) who the fuck evals() a random sting.
ANd then can't work our all this can be done with json.parse()
🤨 -
Yeah that's not JavaScript. Some of the variable names start with $. Someone just came from PHP writing shitty WordPress plugins and has no fucking clue what they're doing
-
C0D4681465y@AlgoRythm not true.
Drop Jquery in and $xyz is a valid variable
This is not a "needs more Jquery" comment 😂 -
Lol no, that is not how you parse JSON in 2019. Actually, that was not how you parsed JSON in 2012 to begin with.
Its a hacky hack made to parse what he needed with strings instead of objects because whomever wrote it is a fucking moron :D -
noyb3905yI feel anger towards this.
And i also feel this anger is pretty old. Possibly the pain of wasted time ciphering through code such as this and "refactoring" it so i can continue with my life...
We should be prepared for this in colleges just like doctors need to work on dead bodies in their training. -
@AlgoRythm oh it is most definitely Javascript brochacho. The $ got me at first but the stringify and slicing methods are 100% JS stuff. this code is the stuff of nightmares when seeing it all over the place :P PTSD made it easy to spot haha
-
@c64forthewin damn b, what kinda cs students y'all have over there where you're from? Most mkfrs I went to school were pretty legit.
alright... so thats how you parse JSON in javascript in 2019? i'm vomiting right now...
rant
javascript