567
top 50 comments
sorted by: hot top new old
[-] cantstopthesignal@sh.itjust.works 2 points 47 minutes ago* (last edited 42 minutes ago)

I was with Jason Stringify just last night, but he tried to convert me to a new religion so I left.

[-] rumba@lemmy.zip 1 points 39 minutes ago

just jq and cut to the chase

[-] victorz@lemmy.world 1 points 10 minutes ago

It's spelled "j/k"

[-] _stranger_@lemmy.world 12 points 2 hours ago

Ugh, terrible memory unlocked.

I asked someone a similar question in an interview once. They weren't doing well and I wanted to end on a positive at least. I asked them to make a dict in python and for extra credit, turn it into a string using whatever library or method they want.

This was not for a junior position.

5 minutes of for loop insanity later they disconnected crying. I always felt bad for that guy.

[-] kamen@lemmy.world 1 points 8 minutes ago

Subtle hint that this is not for them.

[-] heartSagan5@lemmy.zip 2 points 55 minutes ago
cat = dict(name=‘Garfield’, color=‘orange’)
str(cat)

Can I have that job?

[-] _stranger_@lemmy.world 1 points 19 minutes ago

I would have accepted this answer.

I was hoping for json.dumps, but that'll work.

[-] lobut@lemmy.ca 1 points 41 minutes ago

When imposter syndrome meets an actual imposter!

[-] Luminous5481@anarchist.nexus 10 points 2 hours ago

Javascript is a human rights violation

[-] pupbiru@aussie.zone 5 points 2 hours ago

i agree but hate to add the caveat that it (well, typescript) these days is by far the language that i’m most productive in, with the fewest bugs

it took me a long time to admit that to myself

it’s still a human rights violation

[-] cantstopthesignal@sh.itjust.works 1 points 45 minutes ago

They may think they have gotten over me, but they always come back.

[-] Damage@feddit.it 7 points 2 hours ago
[-] heartSagan5@lemmy.zip 3 points 53 minutes ago

Dude, it runs client side code for most of the Internet.

[-] Avicenna@programming.dev 105 points 8 hours ago

alternative scenerio:

Guy: "it turns javascript objects into texts in json format"

Soldier: "He uses javascript, shoot the poor bastard"

[-] cantstopthesignal@sh.itjust.works 1 points 44 minutes ago

Are they from the army of Rust Neckbeardistan.

[-] bluelabel@lemmy.world 44 points 7 hours ago* (last edited 7 hours ago)

Alternative scenario:

Soldier B: Soldier A asked a JavaScript question instead of a software engineering question. He's not a real soldier, shoot him

[-] somegeek@programming.dev 9 points 6 hours ago

Name 3 UML diagrams and 3 architectures!

[-] jaybone@lemmy.zip 24 points 5 hours ago

“It’s ok. Just shoot me.”

[-] mrsilkworm@piefed.social 31 points 7 hours ago

I ll do you a better one. Why is Jason?

[-] OpenStars@discuss.online 15 points 6 hours ago

Don't ask - if he told you then he'd have to kill you...

img

[-] cryptTurtle@piefed.social 3 points 1 hour ago
[-] OpenStars@discuss.online 2 points 40 minutes ago

No no no no no - keep up! We're talking about "Jason" - the one who was killed but came back to continue his task anyway... oh, I see the confusion now 🤔🤪

img

[-] funkless_eck@sh.itjust.works 1 points 3 hours ago

because otherwise the javascript objects would be unnoted

[-] ChickenLadyLovesLife@lemmy.world 2 points 5 hours ago

Drax the Destroyed.

[-] WhiskyTangoFoxtrot@lemmy.world 2 points 3 hours ago
[-] HCSOThrowaway@lemmy.world 2 points 2 hours ago
[-] foleac@discuss.tchncs.de 49 points 8 hours ago* (last edited 6 hours ago)

TypeError: JSON.stringfy is not a function

[-] jaybone@lemmy.zip 7 points 5 hours ago

Oh shit didn’t notice the typo. Probably the all caps didn’t help.

[-] Tetragrade@leminal.space 2 points 45 minutes ago

Its ok, JavaScript is an interpreted language so the client won't notice until after we've shipped.

[-] urushitan@kakera.kintsugi.moe 10 points 7 hours ago

of course MIT uses their own JSON primitives

[-] porous_grey_matter@lemmy.ml 53 points 9 hours ago

Not sure every software engineer needs to know this. If they'd said web developer I suppose this would really be expected knowledge, but then you'd probably want to shoot them anyway.

[-] SparroHawc@piefed.world 4 points 2 hours ago

Web developer, or business developer. A lot of inter-system communications these days is in JSON, whether there is any JavaScript involved or not.

[-] Waterpumpee@lemmus.org 9 points 7 hours ago

honestly, this is used for debugging. Why not just pass the object as value to the console.log()

[-] jaybone@lemmy.zip 4 points 5 hours ago

Stringify is used to serialize an object. This is useful if you are going to store the object or transfer the object contents to some other system or component, possibly over a network using a network protocol.

For debugging, you should use a function like console.log, which depending on the client might even offer an interactive UI to explore the object with structurally aware context. Not just print a giant string, which you get from stringify.

[-] PumaStoleMyBluff@lemmy.world 2 points 3 hours ago

Stringify is used to serialize an object poorly

[-] pupbiru@aussie.zone 4 points 2 hours ago

stringify is used to serialize an object good enough in the large majority of cases because we have far more poorly implemented hacks to work around

[-] TrickDacy@lemmy.world 4 points 5 hours ago

Not only used for debugging and also if you log a complex object, the way it gets displayed in the console is not always easy/possible to fully inspect. It will get.. truncated for lack of a better word

[-] SaveTheTuaHawk@lemmy.ca 4 points 5 hours ago

Or when is Json? When??

[-] lime@feddit.nu 59 points 10 hours ago

i've designed my own communication protocols that run directly on udp. i couldn't tell you either.

[-] lobut@lemmy.ca 1 points 41 minutes ago

I refuse to believe you couldn't infer what this is, you're way too smart and you could definitely just guess.

[-] ramble81@lemmy.zip 4 points 4 hours ago

I mean, that’s fine, right up till you have to communicate with something else. Given that 99% of APIs out there use JSON.

[-] lime@feddit.nu 1 points 4 hours ago
[-] ramble81@lemmy.zip 5 points 4 hours ago

Uh-huh, and where do you think most “something else that you would interact with” live from a computing standpoint. It’s not like you’re using X12 or HL7 everywhere.

[-] lime@feddit.nu 1 points 1 hour ago

you're a few layers too high up then. i work mostly in ble and lora networks. json is waaay to verbose.

[-] LurkingLuddite@piefed.social 3 points 1 hour ago

Wait until you hear about this XML thing.

[-] MalReynolds@slrpnk.net 15 points 8 hours ago

Ima guess it's javascript-ese to turn a json object into a string, perhaps for serialization. But no clue, coding for decades but always hated js, I guess my way through with a linter and IDE when I absolutely, positively, cannot find an alternative, which seldom happens.

[-] sukhmel@programming.dev 22 points 7 hours ago

I mean, the meme could've been ‘oh, it's JS, shoot me’

[-] anomnom@sh.itjust.works 7 points 6 hours ago

Before yaml, I used json with Ruby it was way nicer to read than xml config files ( but way before that I started using it with PHP and Actionscript)

[-] jaybone@lemmy.zip 6 points 5 hours ago

Yeah you don’t have to be using JavaScript to use json. Yes I know it’s part of the name, but it’s just an object notation which is the other part of the name, and this has become widely accepted for use in nearly all popular languages and frameworks.

[-] sukhmel@programming.dev 1 points 1 hour ago

Are there any other languages that would also have Json.Stringify? I only read JS sometimes and never write those, so I may be wrong about that.

JSON itself is fine, yeah

this post was submitted on 12 Aug 2026
567 points (98.1% liked)

Programmer Humor

32743 readers
1184 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS