Oct 17, 2025 Post comments count2 Post likes count2 Using RAII to remedy a defect where not all code paths performed required exit actions, follow-up Raymond Chen If the callback requires copyability.
Oct 16, 2025 Post comments count9 Post likes count5 Using RAII to remedy a defect where not all code paths performed required exit actions Raymond Chen Passing the obligation onward.
Oct 15, 2025 Post comments count9 Post likes count4 Why can you increment a reference count with relaxed semantics, but you have to decrement with release semantics? Raymond Chen It's more important to clean up when you leave.
Oct 14, 2025 Post comments count12 Post likes count6 I remember taking a screen shot of a video, and when I opened it in Paint, the video was playing in it! What witchcraft is this? Raymond Chen You copied the green screen.
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 7, 2025 Post comments count6 Post likes count2 Remembering the end of support for VRML in Internet Explorer Raymond Chen No one left standing.
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.