Abstract
Until this point we have used assert statements to ensure that a condition required by the code to generate correct output is met. For example, we might check that a number that we were going to take the square root of is non-negative, and trip an assertion if this condition were not met. Whilst this approach is very useful as it pinpoints errors, it is rather inflexible as it terminates the code at the instant that an assertion is tripped. We would much rather the code instead made some attempt to fix the problem itself, if that were possible, warned us of the possible effects of the fix if necessary, and then carried on executing. This is possible through the use of exceptions, which is one focus of this chapter. The second focus of this chapter is the use of suitable testing techniques to allow software to be developed in a sustainable manner.
Full Text
Topics from this Paper
Sustainable Manner
Assert Statements
Correct Output
Suitable Testing
Testing Techniques
Create a personalized feed of these topics
Get StartedTalk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Similar Papers
Journal on Education
Feb 7, 2023
Izvestiya Journal of the University of Economics – Varna
Jun 1, 2022
Forest Ecology and Management
Oct 1, 2022
Materials
Jun 21, 2019
Journal of Environmental Science and Economics
Oct 1, 2022
Jan 1, 2010
Journal of Communications Software and Systems
Jan 1, 2022
26th Aerospace Sciences Meeting
Jan 1, 1988
Jan 1, 2021
Sustainability
Oct 19, 2017
Jan 1, 2005
Wear
Jan 1, 2012
BMC Bioinformatics
Jan 19, 2009