concept production code in category .net

appears as: production code
ASP.NET AJAX in Action

This is an excerpt from Manning's book ASP.NET AJAX in Action.

Don’t call the Sleep method in production code. You use it here only for demonstration purposes so you can see that the UpdateProgress control is working.

However, the Function._validateParams function and all its associated internal methods are defined in the release version of the library files. In the next section, we’ll discuss a couple of scenarios for using parameter validation in production code.

13.1.4. Parameter validation in production code

Using the Function._validateParams method to validate parameters whenever a function is called is expensive in terms of performance. You should use this method only in the debug versions of script files; but in a couple of scenarios, this method can be useful in production code.