Effective C++ programming
Code | Completion | Credits | Range | Language |
---|---|---|---|---|
NI-EPC | Z,ZK | 5 | 2P+1C | Czech |
- Garant předmětu:
- Daniel Langr
- Lecturer:
- Daniel Langr
- Tutor:
- Daniel Langr
- Supervisor:
- Department of Computer Systems
- Synopsis:
-
Students learn how to use the modern features of contemporary versions of the C++ programming language for software development. The course focuses on programming effectivity and efficiency in the form of writing maintainable and portable source code and creating correct programs with low memory and processor time requirements.
- Requirements:
-
Very good knowledge of the topics of the BIE-PA1 and BIE-PA2 courses, some knowledge of the topics of the BIE-SAP and BIE-OSY courses. Knowledge of BI-PA2 „extra material“ is recommended.
- Syllabus of lectures:
-
1. Introduction, observable behavior, as-if rule, optimizations, translation units, ABI
2. Translation units and observable behavior, ODR, internal linkage, inline, libraries, static and dynamic linking, PIMPL
3. Undefined behavior, object lifetime, static and dynamic storage allocation, initialization and destruction
4. Costs of dynamic allocations, alignment, padding, placement new, owning objects
5. Small string optimization
6. Expressions new[] and delete[], object content, vector class
7. Value categories, types of references, reference binding, std::move
8. Emplace semantics, perfect forwarding, dispatching
9. Templates, template instantiation, template argument deduction, template specialization, variadic templates, template parameter pack
10. Function parameter pack, concepts and constraints, SFINAE
11. Exception safety, allocators, small buffer optimization, empty base optimization, type erasure
12. Type erasure, std::function, std::any, std::variant, CRTP, ADL
- Syllabus of tutorials:
-
Practical training of the lecture material.
- Study Objective:
-
The goal of the course is to learn students how to use contemporary versions of C++ programming language such that they would be able to create efficient, correct, maintainable, and portable software.
- Study materials:
-
Josuttis, The C++ Standard Library-A Tutorial and Reference
Meyers, Effective Modern C++
Prata, C++ Primer Plus
Reddy, API Design for C++
Stroustrup, Programming - Principles and Practice Using C++
Stroustrup, The C++ Programming Language
Sutter and Alexandrescu, C++ Coding Standards: 101 Rules, Guidelines, and Best Practices
Vandervoorde and Josuttis, C++ Templates - The Complete Guide
Williams, C++ Concurrency in Action
cppreference.com, www.cplusplus.com (C++ reference)
stackoverflow.com (developer forum)
isocpp.org (news, status, blogs, FAQs, discussion)
ISO/IEC 14882:2014 Information technology - Programming languages-C++
- Note:
- Further information:
- https://courses.fit.cvut.cz/NI-EPC/
- Time-table for winter semester 2024/2025:
- Time-table is not available yet
- Time-table for summer semester 2024/2025:
- Time-table is not available yet
- The course is a part of the following study plans:
-
- Master specialization Computer Science, in Czech, 2018-2019 (elective course)
- Master specialization Computer Security, in Czech, 2020 (elective course)
- Master specialization Design and Programming of Embedded Systems, in Czech, 2020 (elective course)
- Master specialization Computer Systems and Networks, in Czech, 202 (PS)
- Master specialization Management Informatics, in Czech, 2020 (elective course)
- Master specialization Software Engineering, in Czech, 2020 (elective course)
- Master specialization System Programming, in Czech, version from 2020 (PS)
- Master specialization Web Engineering, in Czech, 2020 (elective course)
- Master specialization Knowledge Engineering, in Czech, 2020 (elective course)
- Master specialization Computer Science, in Czech, 2020 (elective course)
- Mgr. programme, for the phase of study without specialisation, ver. for 2020 and higher (VO)
- Master Specialization Digital Business Engineering, 2023 (VO)
- Master specialization System Programming, in Czech, version from 2023 (PS)
- Master specialization Computer Science, in Czech, 2023 (elective course)