7

How to become a Senior Detective, according to Murderville

 2 years ago
source link: https://devblogs.microsoft.com/oldnewthing/20220329-01/?p=106407
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

How to become a Senior Detective, according to Murderville

Raymond

March 29th, 20221

One of my colleagues pointed out a screen shot from the Netflix documentary series¹ Murderville as the Senior Detective introduces himself:

m_vecSockets.clear();
m_ButtonStartServer.SetCheck(BST_UNCHECKED);
m_ButtonStartClient.SetCheck(BST_UNCHECKED);
EnabledControl();
m_wndCountPeople.SetWindowText("0 peop.");
SetWindowText("Error");
}
void CChatCppDlg::OnBnClickedButtonSend()
{
CString strChat;
m_wndSend.GetWindowTxt(strChat);
SendChat(strChat);
}
void CChatCppDl

It looks to me like the Senior Detective is busy typing out the next method of CChatCppDlg at the bottom of the screen.

It also appears that Senior Detectives believe indentation is superfluous, use MFC, and are very conscientious about wasting space, preferring to abbreviate “people” to just “peop.” to save one character. (But why not “ppl.”?)

Another colleague was able to find out that this Senior Detective plagiarized his code from a Russian Web site, which in turn appears to have been derived from an MFC sample program.

So that’s how you become a Senior Detective: Find a Russian Web site, copy its code, including the odd indentation, but strip the comments, and translate the strings back to English. Instant promotion!

¹ No, Murderville is not actually a documentary. It’s a comedy. The running joke in all of these “How to… according to” posts is that I’m naïve and think that all of television is real.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK