CPP Chapter0 Slides
CPP Chapter0 Slides
Dr John Armstrong
For you:
I It will help you get a job
For banks:
I C++ is general purpose.
Example
A student wishes to price a derivative for their MSc dissertation.
They estimate that the program will take 10 minutes to run if they
write it in MATLAB but will only take 2 minutes to run on a
quad-core computer if they write it in C++. Which language
should they use?
Pricing a portfolio of derivatives
Problem
How do you write software so that no individual has to understand
everything that is going on?
Problem
How do you write software so that a team of hundreds can work on
the software at the same time without getting in a mess?
Problem
How do you write code that is easy for others to understand?
Correctness
Problem
How do you write code that doesn't contain bugs? How do you
ensure that there are no bugs in the code written by a team of
hundreds?
Problem
Given that you probably can't guarantee that there are no bugs,
how do you ensure that the eects of a bug are not too harmful?
Extendability
Problem
How do you write code that can be extended easily and rapidly?
Problem
How do you ensure that no bugs have crept into the latest version
of your code, given that you plan to release a new version almost
daily?
Problem
How do you even release new code, when all the software has to
keep running 24 7?
Scalability
Problem
How can you ensure that your software will continue to work with
exponentially increasing data volumes?
Exercise