Raymond Chen

Raymond has been involved in the evolution of Windows for more than 30 years. In 2003, he began a Web site known as The Old New Thing which has grown in popularity far beyond his wildest imagination, a development which still gives him the heebie-jeebies. The Web site spawned a book, coincidentally also titled The Old New Thing (Addison Wesley 2007). He occasionally appears on the Windows Dev Docs Twitter account to tell stories which convey no useful information.

Post by this author

How can I force a copy of a C++ value?

Forcing a copy with a minimum of typing.

In C++/WinRT, you shouldn’t destroy an object while you’re co_awaiting it

A generalization of the ground rules of programming.

How do I make an expression non-movable? What’s the opposite of std::move?

You can turn it into a const thing so it's no longer movable, in a conventional sense.

In domain\user syntax, you can often use the period as an abbreviation for “this computer”

A bit of a typing saver, particularly with complex machine names.

Is shadowing a member variable from a base class a bad thing? Maybe, but maybe not.

It depends on the order in which things occurred.

C++/WinRT performance trap: Switching to Windows Runtime too soon

Stay in the devirtualized world until you are forced to leave.

If a parameter isn’t used, what should I pass?

It doesn't matter what you pass, but if you have to ask, then just pass zero.

On the whole idea of giving away a reference to yourself at destruction

Hey, at least it's possible.

Mitigating attacks based on knowing the length of a Windows Hello PIN

Balancing convenience against security, and how you can tune the knobs toward more security.

A C# LINQ one-liner to check if exactly one of a set of conditions is met

Maybe not the most efficient, but it's easy to write.