
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
honestly, this is used for debugging. Why not just pass the object as value to the console.log()
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.
Stringify is used to serialize an object poorly
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
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
Web developer, or business developer. A lot of inter-system communications these days is in JSON, whether there is any JavaScript involved or not.
TypeError: JSON.stringfy is mit a function
of course MIT uses their own JSON primitives
Oh shit didn’t notice the typo. Probably the all caps didn’t help.
Its ok, JavaScript is an interpreted language so the client won’t notice until after we’ve shipped.
Maybe the client’s interpreter’s autocorrect will fix it at run time.
Not as far-fetched a scenario as in a sane world it should be. I could imagine the next version of Chrome running a local mini-Gemini instance with a custom system prompt __“You are a fast, secure, and error-free Javascript JIT compiler…”_
What movie is that meme template from?
The Pianist.
It’s a somber movie if that’s what your into. I watched it with a German gf. And my brother at 13. He did not let up.
should have told him to go take a shower.
Totally off topic, what did you think of green knight? Or did you read the book?
the movie was good, probably one of the more apt translations of the poem.
didn’t read the book, but was always a fan of the poem.
just jq and cut to the chase
It’s spelled “j/k”
Ew JavaScript
Dude, it runs client side code for most of the Internet.
Ew
And backend code for a surprisingly large amount of it too
“Dude, diarrhea cleans out your system.”
Yeah, not in a good way.
Thats the gross part!
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.
Subtle hint that this is not for them.
When imposter syndrome meets an actual imposter!
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.
I think json.dumps would not work if there is a datetime in the dict, right?
Yeah there’s other edge cases too, like Decimal, but as long as you have those things imported when you send it through dumps it should work.
Just tried it in an ipython shell
import datetime import json json.dumps({"a": datetime.datetime(1970,1,1)})And I got the TypeError: datetime not JSON serializable though.
when i last did interviews we didn’t do live coding, but chatted to applicants about things they liked about their preferred language (this was a consultancy position). people who actually like to program tend to have loads of opinions. juniors moreso. the less engaged people were with those questions, the worse the solution the their take-home task tended to be.
a friend of mine interviewed a candidate who apparently visibly froze after every question, like it was a quiz. turns out they were being fed answers from people off-screen and those people hadn’t expected casual conversation. they were found out when they forgot to mute.
Haha I have also done an interview where the person had a friend in the room feeding them answers, though this one must have assumed his mic was worse than it was and didn’t mute at all, so we could hear the mumbling of answers. To make it even funnier, though, their friend wouldn’t have gotten hired either because none of their answers were good.
I kinda wanted to tell them they should find a smarter friend to help them cheat at interviews but instead just thanked them for their time and ended the interview.
Though tbh, I wasn’t really impressed by any of the new grads from the schools we were looking at. Some of them made me wonder if they learned anything at all about software development during their time at school.
I once had a candidate give the join link to the meeting out to several people (there were 3 unknown people in the call in addition to me and him). I immediately explained we can’t do the interview with all these other people on the call and he proceeded to try and gaslight me that there were no other people in the call, like he honestly thought he had jedi mind truck powers.
I called over several coworkers to witness the clusterfuck, many lols were had.
man, what i wouldn’t give for mind truck powers.
Sounds like someone bullshitted their way through school to get a technical degree, not realizing that their bullshitting depended on the person they were bullshitting not being good or confident with technology, which gets rarer when you go into a technical career.
which gets rarer when you go into a technical career
Sorry, what?
Ded
imagine doing web development for a living and calling yourself a ‘coder.’
you’re writing instructions for a web browser, not a computer, pal. you fear the computer and it’s language the same way you fear a black man from the islands when you venture through a bad neighborhood.
there isn’t even a proper analogy for vibe coding because it’s so lame. imagine showing up to a jazz club and wanting to sit with a band but all you brought was your laptop with suno but everyone else is playing a real instrument.
are you a musician?
What is web development if not coding? You write specially formatted text in a file with a particular extension and another program that knows how to read it makes the computer do things.
TBF most of it is JavaScript which is actually code, but they shouldn’t be called coders for another reason.
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!
Name 3 UML diagrams
Class diagram, use case diagram and… What was the useless, barely readable evolution of flowcharts called again? Activity diagram?
and 3 architectures!
MOS 6502, amd64, and… I’ve never figured out the ARM naming scheme. AAAAAAarch64 or something?
You only get shot in one knee.
By architecture I meant software architecture.
Micro services, Service Oriented Architecture, and big old monolith ?
“It’s ok. Just shoot me.”
Are they from the army of Rust Neckbeardistan.
Oh my god… that’s JSON Bourne
I ll do you a better one. Why is Jason?
Drax the Destroyed.
because otherwise the javascript objects would be unnoted
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 🤔🤪

Ah, I see where he went wrong. The correct answer was “JavaScript? Ew.”
Also acceptable: JavaScript? Ok shoot me.
May I just say I love all your comments.
Nobody Doesn’t Like Molten Boron™
Huh, this made me realize all these years that I’ve been pronouncing it as “jay-sawn.” Is it really pronounced like “Jason?”
I say “Zhee-SOHN” to sound all fancy…until my coworkers start throwing stuff at me.
Yes
Im still saying json and you can’t change my mind
Dammit… Now I can’t say it correctly
I pronounce it Jay-Son
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?
It’s probably not, but what if?
Damn, that’s a good reason
There’s no official pronunciation, so long as you’re consistent, you’re Gucci
I was with Jason Stringify just last night, but he tried to convert me to a new religion so I left.



















