← Retour au blog
tech 21 May 2026

Mastering the Art of Doing Nothing Correctly in 2024

In software development, knowing how to handle situations where 'doing nothing' is the best option is crucial. This article explores how to implement this strategy correctly, with concrete examples.

Article inspired by the original source
If you're just going to sit there doing nothing, at least do nothing correctly (2024) ↗ devblogs.microsoft.com

The Importance of Doing Nothing Correctly

In the world of software development, knowing how to do nothing correctly is sometimes essential. It might sound paradoxical, but in certain situations, the most appropriate action is inaction, or more precisely, avoiding errors or unexpected behaviors. Take the example of Windows printing infrastructure, which isn't available on Xbox.

The Case of Printing on Xbox

Imagine a user trying to print from an Xbox application. If the app was primarily tested on a PC, where printing is available, the print function might throw a NotSupportedException on Xbox, leading to a crash. A better approach is to simulate printing support while providing no installed printers. Thus, the user sees an empty list and understands that printing isn't possible, without the app crashing.

Strategies for Implementing 'Doing Nothing'

  1. Return Neutral Values: When features cannot be supported, return values that do not affect the application's flow. For example, returning a success code but with no actual action.
  1. Simulate Support Without Impact: As in the printing case, simulate the feature support without actually executing it.
  1. Add Capability Checks: Integrate functions that check if an action is possible before launching it, allowing developers to hide unavailable options.

Concrete Examples

In serverless environments, it is common to see functions that do nothing when certain conditions are not met, saving resources and processing time. Another example is using third-party APIs where some features might not be available depending on the user's geographical location, and it is essential to handle this gracefully.

Conclusion

Mastering the art of doing nothing correctly might seem trivial but is crucial to avoid unexpected behaviors and improve user experience. As a developer or software architect, it is essential to design systems that handle these situations gracefully.

Let's discuss your project in 15 minutes.

software development error handling API design user experience system architecture
Deepthix newsletter · 100% AI · every Monday 8am

An AI agent reads tech for you.

Our AI agent scans ~200 sources per week and ships the best articles to your inbox Monday 8am. Free. One click to unsubscribe.

Visit the newsletter page →

Want to automate your operations?

Let's talk about your project in 15 minutes.

Book a call