Oct 13, 2025 Post comments count4 Post likes count3 API design principle: Don’t tempt people to divide by zero Raymond Chen Remove it from the equation.
Oct 10, 2025 Post comments count5 Post likes count2 The self-assignment principle for Windows Runtime properties: Don’t change behavior based on whether a property has been written to Raymond Chen The fact that a property has been set does not by itself trigger functionality.
Oct 9, 2025 Post comments count4 Post likes count2 The self-assignment principle for Windows Runtime properties applies to default values Raymond Chen The default value must be legal.
Oct 8, 2025 Post comments count7 Post likes count2 Windows Runtime API design principles around read-write properties: Idempotence and self-assignment Raymond Chen Setting it to the value it already has is not a crime.
Oct 6, 2025 Post comments count10 Post likes count3 Code comments should apply to the state of the system at the point the comment “executes” Raymond Chen Putting them in the flow.
Oct 3, 2025 Post comments count2 Post likes count2 Can we get weak functions for static linking? The Visual C++ compiler says “We have weak functions at home” Raymond Chen It's already there, just under a different paradigm.
Oct 2, 2025 Post comments count0 Post likes count1 The problem with inferring from a function call operator is that there may be more than one Raymond Chen auto parameters make this easy to write, particularly for lambdas.
Oct 1, 2025 Post comments count1 Post likes count3 How do I convert a FILETIME to a C++ clock like std::system_clock or winrt::clock? Raymond Chen The winrt::clock has a conversion for you.
Sep 29, 2025 Post comments count1 Post likes count3 How can I enumerate the overflow icons in the Notification Area without showing them? Raymond Chen If they aren't shown, then they aren't automatable, so there's no requirement that they exist in the UI automation tree.
Sep 24, 2025 Post comments count13 Post likes count8 Why is Windows still tinkering with critical sections? Raymond Chen The critical section may be an old dog, but it's still learning new tricks.