Why Do We Have to Call Dispose
At first, the need to call Dispose puzzled me. I thought that with object pooling it was natural to have to call Dispose so that used objects were given back to the pool as fast as possible instead of waiting for the garbage collection. I didn't understand why it was preferable to use Dispose for all other serviced components. When I discussed this with Microsoft, Egidio Sburlino, Developer Engineer Lead in the COM group, and Dave Driver, Developer Engineer in the COM group, explained it a bit...
Examining My Solution for Assertions in Stored Procedures
Unfortunately, T-SQL doesn't have built-in support for assertions, but you can easily come up with a solution on your own. Listing 3.13 shows an example of an assertion being checked. Listing 3.13 Call to Stored Procedure Version of Assert IF NOT someParameter lt gt 0 BEGIN EXEC JnskAssert_Assert ' someParameter lt gt 0', theSoursce END I expect that someParameter will always be different from 0 at that particular point in the code. Therefore, I call my homegrown jnskAssert_Assert stored...
Proposal Used for Sample Application Acme HelpDesk
If I apply the conceptual architecture to the sample application Acme HelpDesk dscussed earlier, it will appear as in Figure 5.4. As you can see, I have provided physical names in the packages. The namespaces and names of assemblies with exe or dll as extension will be Figure 5.4. My architecture proposal applied to the sample application Acme HelpDesk. Figure 5.4. My architecture proposal applied to the sample application Acme HelpDesk. Acme.HeipDesk for the Consumer layer for the Consumer...
Example 2 Incorrect Use of NotSupported
In this example, we will let a root component control a transaction and ask for help from two secondary components for doing subtasks. Assume you have the components listed in Table 6.5. Table 6.5. Example 2 Instances, Components, and Transaction Attributes Table 6.5. Example 2 Instances, Components, and Transaction Attributes aSecondary instance of component B anotherSecondary instance of component C Assume that aRoot calls aSecondary and aSecondary updates a specific errand. Recall the sample...
Other abilities Such as Maintainability Reliability Reusability Testability
In the software engineering field, there is a lot of discussion about -abilities. Other collective names for them are quality attributes and nonfunctional requirements. Unfortunately, they are often hard to measure, but, even so, they are extremely important to consider. In addition, it's often difficult to get customers to discuss the nonfunctional requirements. If you ask them if you should add support for debuggability, for example, they often turn away from the idea as soon as they...
