Elevate Your Code to Modern C++11 with Automated Tooling - Peter Sommerlad [ CppCon 2014 ]
4,298 views · Published 3 October 2014 · 1:03:17 · Indexed 26 September 2026
Channel: CppCon · 2014 · Science & Technology
http://www.cppcon.org — Presentation Slides, PDFs, Source Code and other presenter materials are available at: https://github.com/CppCon/CppCon2014 -- This talk will motivate and demonstrate how to transform your existing C++ code into more modern style and better quality. A key to that is refactoring the code into better shape. While manual refactoring can be tedious and error prone the author demonstrates automated refactoring that was created by his students and assistants and himself over the last nine years on the basis of Eclipse CDT. The tooling works with all compilers, because it is independent of one. For example, we will show how to eliminate unnecessary macros or replace them by type-safe C++11/14 alternative code automatically. Or, to replace pointers, plain arrays and manual memory management by references, smart pointers, std::string, std::array, or std::vector automatically. Also other transformations, such as introducing a template parameter to reduce a coupling to a single concrete type are demonstrated. All with the goal to modernize and hopefully simplify your C++ code. Even if you are not deeply interested in modernizing your code base, some helpful tooling, such as toggling function definitions into a single place, to change their signature, can be of great help. On the other hand, many of the proposed improvements can also be applied with your favorite code editor only more tediously. -- Professor, Director IFS, FHO HSR Rapperswil - IFS Institute for Software Prof. Peter Sommerlad is head of IFS Institute for Software at FHO HSR Rapperswil. Peter is co-author of the books POSA Vol.1 and Security Patterns. His goal is to make software simpler by Decremental Development: Refactoring software down to 10% its size with better architecture, testability and quality and functionality. Peter is a member of the C++ standardization committee, ACCU, ACM, SI and president of SWEN.Website: http://wiki.hsr.ch/PeterSommerladTwitter handle: @PeterSommerlad -- Videos Filmed & Edited by Bash Films: http://www.BashFilms.com — Optimized And Managed by Digital Medium Ltd - events.digital-medium.co.uk [email protected] Work at Hudson River Trading (HRT): https://tinyurl.com/safxfctf
More from this channel
-
50:09
CppCon 2015: Joel Falcou PART 3 “Expression Templates: Past, Present, Future”
-
51:27
Simple, Extensible Pattern Matching in C++14 - John R. Bandela [ CppCon 2015 ]
-
44:35
CppCon 2015: Jens Weller “An Overview on Encryption in C++"
-
8:41
Introducing brigand - Edouard Alligand & Joel Falcou [ CppCon 2015 ]
-
12:05
Traits Go Mainstream... Leor Zolman - [ CppCon 2015 ]
-
1:01:32
CppCon 2016: Bob Steagall “Lightweight Object Persistence With Relocatable Heaps in Modern C++"
-
57:53
CppCon 2016: Roland Bock “How to test static_assert?"
-
1:08:27
CppCon 2017: Tomasz Kapela “C++ and Persistent Memory Technologies, Like Intel's 3D-XPoint”