ProfessorReply1_2.docx

Discussion question 1 # professor question : Glenn

I’ve never written a program that required more than a minute to compile, but on major projects, it is much better to only recompile the code being worked on. The downside is that changing code in one module might impact previously compiled code. The only way I know to safeguard against that possibility is having unit testing (or at least integration testing) built into the project from the beginning. Thoughts?

Discussion question 2 # professor question : Glenn

I have seen constructors used in two ways. Usually they are used at the start of a class and can be fairly complex when used for multiple purposes. This is common in Unit Testing when mocking an interface. The other use I’ve seen is a lightweight object created and destroyed in a loop for a short period of time. This is common in game design. Thoughts?