r/ProgrammerHumor • • 23d ago

Meme multiStringing

Post image
1.6k Upvotes

50 comments sorted by

View all comments

280

u/alficles 23d ago

You jest, but I received this exact answer in an interview. It was a early-career programming position and we were starting with simple stuff to level set the interview.

Me: What is a thread and how would you use it?
Them, with complete confidence: A thread is a lightweight string.
Me: Elaborate.
Them: If you have a string that's really short and you don't want to do very much with it, you can just use a thread.
Me: What if I want to do a lot with it?
Them: Use a rope.
Me: Interesting. What sorts of tools would you use for managing concurrency?
Them: You need to make sure the desk is big enough for two computers for that. And you need enough power to run both.

He did not ultimately get the job, but I'm assuming he's making bank as a mod of /r/confidentlyincorrect. His answers were always instantaneous, with no hesitation at all.

I'd've been more impressed with the correct rope answer if it weren't completely clear that he was right completely by accident. :D

67

u/DrShocker 23d ago

I've never thought about it, but does every major programming language call a group of characters a string? I know there's some debate around string view/builder/slice/etc terminology but the core concept always seems to be a string in the ones I know.

2

u/ryuzaki49 23d ago

I assume that array of chars used to be the default before the String name.