Why JSON?
alternative scenerio:
Guy: “it turns javascript objects into texts in json format”
Soldier: “He uses javascript, shoot the poor bastard”
Alternative scenario:
Soldier B: Soldier A asked a JavaScript question instead of a software engineering question. He’s not a real soldier, shoot him
Name 3 UML diagrams and 3 architectures!
“It’s ok. Just shoot me.”
Are they from the army of Rust Neckbeardistan.
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.
A lot of info going through the network is either using or converted to either json or xml. If the software being developed is entirely local, then sure
Yeah, but the function isn’t always called stringify
TypeError: JSON.stringfy is not a function
Oh shit didn’t notice the typo. Probably the all caps didn’t help.
I have worked with JSON very often and do not know, what ‘Stringify’ is. Reading it for the first time. Does it… convert anything to strings?
Looked it up:
The JSON.stringify() Method
The JSON.stringify() method converts a JavaScript value into JSON text.
https://www.w3schools.com/js/js_json_stringify.asp
Okay JavaScript. Never worked with JS before.
Also, didn’t knew web devs are considered ‘software engineers’ now. /j
Good thing you’re not in front of a Soviet patrol then like the picture above.
How is it that you worked with JSON very often and don’t know that it stands for JavaScript Object Notation or what stringify does?
Cause json has become ubiquitous in a lot of other contexts. Heck on a ton of Cisco NXOS implementations you can even pipe output to json in the cli. It’s also used in a shitload of application configurations now instead of a flat .conf file too. In fact when I really think about it, I haven’t touched JS in a long freaking time (like years), but have probably touch json at least once a week. I just don’t find it that far fetched that someone would be working with json daily and be incredibly divorced from it’s original implementation.
But they keep implying they are software engineers using JSON in a development capacity… I’d understand a system admin updating a config file to only be familiar with the syntax, but if you’re consuming JSON in your code you either understand the spec enough to implement it, or you didn’t write that code…
Something rubbed me wrong about not knowing what JSON is and insulting web developers as not real software engineers in the same breath.
I use it as a format for, e.g., config files or for serializing data in a human readable format. Mainly from C++, sometimes from Python or C#.
Never in these years did I stumble over stringify.
They didn’t say they don’t know what it stands for.
They don’t work with JavaScript. I don’t deal with JS very often at all. I do know stringify, since I did a bunch of JS stuff back in the 2010s. But it’s not unreasonable for a dev to not know JS.
it’s funny seeing a gatekeeper talking about web devs not being a software engineer while also not knowing basic JavaScript
📽️
As a software engineer I avoid JS as much as possible frankly! Its typing semantics are genuinely horrible, personally I’d never consider eschewing typescript in this day and age.
Then again I’m the sort of masochist who thinks we should all be writing Scala so maybe take this with a pinch of salt.
with vibe coding, finding a library that is exhaustively covered is part of being successful. JS is very popular and llms like it, its sort of like moving to an aws shop from an azure shop, just different strokes for different blokes, as long as they leave the money on their way out
It’s not just about how many examples of a language exist in the LLM’s distribution though, dynamic typing is a poor choice if you’re using LLMs for software in my view because it turns compile-time errors into runtime errors which will only be caught if the LLM writes a suitable test; an area that they still leave a fair bit to be desired in.
The whole virtue of dynamic typing is that it reduces cognitive load on the programmer, if you’re using LLMs there’s no reason to do that in my opinion, you’re offloading a bunch of cognitive load to begin with so expressiveness and constraint is more important than human ergonomics. Yes there’s loads of JS in an LLM corpus but a lot of it is going to be poor examples, because it’s generally quite easy to write JS badly. If you use typescript you’re at least forcing a few common hallucinations to produce compile-time errors which the model has immediate feedback for, and you’re giving the model more context on what it’s seeing.
i also find a robust docs SOT directory of big domains, fallow, madge, knip, ts, and an extra declaritive schema documenation layer on top of migrations schema to be a big help in grounding and keeping rails up
‘/j’ marks a joke
They said software engineer, not bootcamp coder /s
I ll do you a better one. Why is Jason?
Don’t ask - if he told you then he’d have to kill you…

Jesus Christ!
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 🤔🤪

Drax the Destroyed.
because otherwise the javascript objects would be unnoted
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.
cat = dict(name=‘Garfield’, color=‘orange’) str(cat)Can I have that job?
I would have accepted this answer.
I was hoping for json.dumps, but that’ll work.
When imposter syndrome meets an actual imposter!
Subtle hint that this is not for them.
Is casting it to str allowed?
Ah, I see where he went wrong. The correct answer was “JavaScript? Ew.”
May I just say I love all your comments.
Nobody Doesn’t Like Molten Boron™
Also acceptable: JavaScript? Ok shoot me.
deleted by creator

Sprechen sie YAML?
Norway I dont
XML has entered the chat
immediate ban.
washed the ban off with SOAP
@GreenKnight23@lemmy.world used
nuh-uh. It’sSUPEREFFECTIVE!
Oh my god… that’s JSON Bourne
I was with Jason Stringify just last night, but he tried to convert me to a new religion so I left.
“What does JWT stand for?”
“That’s easy. JWT tokens are…”
“Shoot him.”
Huh, this made me realize all these years that I’ve been pronouncing it as “jay-sawn.” Is it really pronounced like “Jason?”
I’ve heard both. Personally, I will continue to pronounce it “Jay-Sawn” until I hear a damn good reason for why I should stop.
What if I told you the guy that invented it is named Jason?
He’s probably not, but what if?
He’s called Doug.
Damn, that’s a good reason
I pronounce it Jay-Son
I say “Zhee-SOHN” to sound all fancy…until my coworkers start throwing stuff at me.
Im still saying json and you can’t change my mind
Dammit… Now I can’t say it correctly
dzhson
Json Carter
















