I have been busy recently. The next article in the series of “Real-time Online game background service technology selection and challenges” will be updated after May Day. Share a paragraph about C++ that I saw yesterday when I visited zhihu. I think it’s very interesting.

Background: what happened when a programmer listed “proficient in C++” as part of his resume.

“Dear XXX, how do you do? Congratulations on passing the written test of XXX Company! Please go to XXXXXX for hr interview at 9:30 tomorrow morning, received reply ~!”

I’ve been waiting so long for this text. Think of these months to find a job sad, helpless, and then think about the countless netizens pushed in exchange for the disappointment of the netizens and the results of the written test, saw this message I was almost crying out. Dare not have a bit of slackness, first with trembling hands to reply to the message, and then set the alarm, and then in Zhihu input “XXX company interview” and other keywords, do not miss a bit of relevant information…… This company is very strange, one side actually is HR interview. I think it would be better to get an answer on one side at least…

Since it was an HR interview, I did not need to review those technical things, and began to frantically search for HR interview experience in Baidu Zhihu, such as “50 COMMON HR interview questions”, “matters to be noted” and so on.

Get up, brush your teeth, wash your face, buy two buns, take a taxi. Carefully tell the location of the message driver master, for fear of reading wrong.

I finally arrived, and there were two female students waiting for the interview with me. One was an iOS developer, and the other was an Android developer. While conversing without a word with them, I watched anxiously for the place where the caller would appear, lest I should not hear her call me.

“Number 9, XXX, is that there?”

“In in!!”

“Come on, follow me.”

Arrived at the interview room. The interviewer smiled and sat me down.

“Oh, XXX. Look at your resume. It says… Well… Proficient in C++?” I thought to myself, isn’t HR hard to fool? I said, yes.

“Oh, there’s a pen and paper on the desk, so let’s start with a template metaprogramming implementation of compile-time heap sort. HMM… Is five minutes enough? I’m starting the clock.”

WTF??? My heart gave me a sudden upset, but I could only pretend to write on the paper what template, typename…

“Time’s up. Let me see. HMM… You don’t seem to know much about templates. Ask me something simpler.”

Oh, my God, finally… Easy come!! There was a glimmer of hope in my heart.

“Look, I have a program here,” she said, swiveling her MacBook toward me. “Can you see that? But this program compiles ICE on Clang 3.7 on my computer. Can you help fix the Clang bug? Ten minutes?”

“This…… Not too familiar Clang……”

“Which C++ compiler are you familiar with?” “MSVC!” I didn’t even think about it.

“Oh, MSVC, let me open the virtual machine… HMM… . Okay. This program will cause MSVC ICE. What’s wrong with MSVC? By the way, MSVC is not open source, just reverse it…”

“This…… Not really.”

“Not this one?” HR is very disappointed, “look at this program, GCC 6.2 and Clang 3.7 run out of the result is not the same, you say it is the error of the standard rectify, compiler implementation problem, or other possibilities? If it is incorrect, rectify it or Unspecified /UB/impl defined, please specify which section of the standard states it. If it is the fault of the compiler, please specify which compiler implementation is wrong and which part of the compiler source code is wrong. HMM… Don’t worry, you don’t know how to change the compiler… By the way, the PDF of the draft standard is not needed, is it? This kind of thing should carry enough?”

I slammed the door and left. The original post address

After reading this paragraph, I can’t say I am proficient in C++ any more.

I wish you a happy May Day, especially in overtime development comrades.