Daniel J. Duffy started the company Datasim in 1987
This three-day hands-on course discusses advanced syntax and language features in C++. It is the follow-up to the course Fundamentals of C++11 and C++14 (code CPPF-11). We cover most of the new features in what feels like a new language compared to C++98. In particular, we introduce new syntax to make C++ easier to learn and to apply to software development and we also discuss the new libraries in the language. We also give an introduction to the functional programming style and how it is supported in C++11.
Having discussed the most important functionality we then move to the design of sequential and parallel programs (on multi-processor computers) in C++. To help in this endeavour, we apply the features in C++ to create more modern versions of software design patterns and parallel design patterns.
After having completed this course you will be able to apply C++ and use it in advanced applications. We assume that the student has C++ knowledge to the level of the course Fundamentals of C++11 and C++14 (code CPPF-11).
The percentage theory/practice is approximately 70/30. The language is extensive and we give compact exercises and demo code to show the essentials of each language feature.
- Multiparadigm design: support for the object-oriented, generic and functional programming styles.
- Improved features.
- New data types and containers.
- Type traits and template metaprogramming (TMP).
- IEEE 754 and floating-point arithmetic in C++.
- STL algorithms A-Z.
- Multihreading and multitasking in C++.
- Learn advanced C++11/C++14 in a step-by-step manner.
- Using C++ libraries instead of third-party proprietary libraries.
- Learn how to design advanced applications in C++.
- Use C++ Concurrency to write multithreaded and parallel code.
- Use C++11/C++14 to create multiparadigm design patterns.
For whom is this Course?
This course is suitable for experienced C++ developers who ideally have some knowledge of C++11. The course is also useful for software architects and designers who are involved with C++ projects.
If you are interested in taking this course (in original or customised form) please contact us at email@example.com
What do you receive?
Course slides and full source code related to the course.
Advanced System Design and Software Design Patterns (DESA).
Quick Review of C++98
- Function pointers
- Function overloading and virtual functions
- The categories of polymorphic behaviour
- Using (and misusing) inheritance to realise subtype polymorphism
Fundamentals of Functional Programming (FP)
- Short history of FP
- Higher-order functions
- Recursion; passing a function to itself
- Strict and non-strict (delayed) evaluation
- Pure functions and lambda functions
Functions and Data
- Function composition
- Currying and uncurrying
- Partial function application
- Fold and continuations
- Functional Programming in C++
Overview C++ as a multi-paradigm programming language
- Universal function type (polymorphic) wrappers (std::function)
- Binders and predefined function objects (std::bind)
- Lambda functions versus binders
- A uniform function framework
- What is a lambda function?
- The closure of a lambda function
- Using lambda functions with auto
- The mutable keyword
Using Lambda Functions
- Configuring applications
- With algorithms
- As sorting criteria
- As hash function
- Lambda functions versus function objects
- A Taxonomy of Functions in C++
Function Pointers and free Functions
- Object and static member functions
- Function objects
- Lambda functions
- Events and signals (Boost signals2 library)
B Core Topics
- Overview of IEEE 754
- Numerics and IEEE 754
- Rounding rules and exception handling
- Normal, subnormal and infinite numbers; NaN
- Machine precision
- Rounding and cancellation errors
Numerics in C++
- Directed roundings
- Floating-point decomposition functions
- Error analysis
- Comparing floating-point numbers
More on Lambda Functions
- What is a lambda function A-Z?
- Stored lambda functions
- Using lambda functions to create higher-order functions
- Lambda versus std::bind
Advanced Lambda Functions
- Generic lambda functions
- Generic lambda functions versus templates
- Capture modes
- Using lambda with decltype and std::forward
- Creating an algebra of higher-order functions
- Using lambda functions to configure applications
- Generalised lambda capture
- Lambda functions and software design patterns
- Advanced Features
Introduction to Type Traits
- Introduction to metaprogramming
- Defining behaviour based on type
- Type categories
- Using type traits in applications and libraries
- Primary (is a generic type of a given type?)
- Composite (is a type scalar, compound or object?)
- Properties (e.g. is a class abstract)
- Relationships (comparing types In some way)
Some Applications of Type Traits
- Robust numerics libraries
- Compile-time Bridge design pattern
- Type-independent code
C Data Structures, Libraries and STL
Review of STL Containers
- Sequence containers
- Associative containers
- Unordered containers
- Container adapters
- User-defined containers
Hash function and hash table
- Categories of hash function
- Creating custom hash
- Boost and STL Heap
- Variants (Fibonacci, skew, priority queue, etc.)
- Heap and computational efficiency
- Boost Heap versus STL heap
- Unordered Containers
Differences with (ordered) associative containers
- Abilities of unordered containers
- Complexity analysis
- Integration with STL and other Boost libraries
- The Bucket interface
Modelling n-tuples (pair is a 2-tuple)
- Using tuples as function arguments and return types
- Accessing the elements of a tuple
- Advantages and applications of tuples
- Tuple member functions
Fixed-sized Arrays std:array<>
- Why do we need std:array<> ?
- Operations and abilities
- Using arrays as C-Style arrays
- Combining arrays and tuples
D Parallel Programming
The new C++ Memory Model
- Sequential consistency
- Ordering non-atomic operations
- Relaxed consistency models
- Total order
Introduction to C++ Threads
- What is a thread?
- Creating a thread with various callable objects
- Thread function: pros and cons
- Waiting on a thread; detaching a thread
- Using lambda functions
- Atomic types and atomic operations
- Atomic load, store, increment, decrement
- Atomic flags
- Smart pointers and thread-safe pointer interface
How Threads Cooperate, I
- Thread synchronisation
- Locks and mutex
- Exception-safe lock
- Sleep and yield
How Threads Cooperate, II
- Thread notification
- Condition variables
- Wait and notify
- Example: Producer-Consumer pattern
C++ Concurrency: Tasks
- Data Dependency graph
- Tasks versus Threads
- Concurrency versus Parallelism
C++ Tasking in Detail
- Futures and shared futures
- Packaged tasks
- Waiting on tasks to complete
Daniel J. Duffy started the company Datasim in 1987 to promote C++ as a new object-oriented language for developing applications in the roles of developer, architect and requirements analyst to help clients design and analyse software systems for Computer Aided Design (CAD), process control and hardware-software systems, logistics, holography (optical technology) and computational finance. He used a combination of top-down functional decomposition and bottom-up object-oriented programming techniques to create stable and extendible applications (for a discussion, see Duffy 2004 where we have grouped applications into domain categories). Previous to Datasim he worked on engineering applications in oil and gas and semiconductor industries using a range of numerical methods (for example, the finite element method (FEM)) on mainframe and mini-computers.
Daniel Duffy has BA (Mod), MSc and PhD degrees in pure and applied mathematics and has been active in promoting partial differential equation (PDE) and finite difference methods (FDM) for applications in computational finance. He was responsible for the introduction of the Fractional Step (Soviet Splitting) method and the Alternating Direction Explicit (ADE) method in computational finance. He is also the originator of the exponential fitting method for time-dependent partial differential equations.
He is also the originator of two very popular C++ online courses (both C++98 and C++11/14) on www.quantnet.com in cooperation with Quantnet LLC and Baruch College (CUNY), NYC. He also trains developers and designers around the world. He can be contacted firstname.lastname@example.org for queries, information and course venues, in-company course and course dates.
|Date from||Date to||Location||Price (excl. VAT)|
|Wednesday 20 June 2018||Thursday 22 March 2018||London||EUR 2450.00|
|Wednesday 26 September 2018||Friday 28 September 2018||Amsterdam||EUR 2150.00|