Request More Info

First Name*:

Last Name*:

Job Title:

Mail Point:

Company*:

Address*:

Town*:

Post Code*:

Country*:
   Codes

Office Telephone*:

E-mail*:

* Required

Information provided will be used to communicate with you about our products.
Privacy Statement

A Learning Tree representative will contact you to follow up your request for information.

Tidsbegränsat erbjudande  – Upp till 40 % RABATT per kurs
 

C++ Best Practices and Design Patterns:
Hands-On


Course: 3974 dagar

 E-mail   Print   Q&A   PDF   Facebook   Twitter    Se på svenska

Quick Enrol

You Will Learn How To

  • Design and implement efficient object-oriented solutions using C++
  • Improve C++ code quality and reusability with design patterns and proven idioms
  • Build robust, efficient libraries using namespaces, templates and exceptions
  • Use the standard C++ library, including the Standard Template Library (STL)
  • Leverage third-party tools, class libraries and application frameworks
  • Avoid the subtle traps and pitfalls of C++ programming

Course Benefits

The ability to leverage the work of others, avoid pitfalls, and apply proven idioms and patterns can greatly improve the effectiveness of programming efforts. In this course, you learn to increase productivity by combining tools, idioms, syntax and libraries to produce industrial-strength C++ code. Numerous hands-on exercises provide real-world experience in developing high-quality C++.

Who Should Attend

Programmers, software engineers, analysts and designers wishing to develop advanced C++ skills. Previous C++ programming experience is assumed.

Hands-On Training

Our expert instructors guide you through practical hands-on exercises that reinforce your skills in advanced C++ programming techniques. Learn by doing as you develop complete programs from architectural design to refining the implementation via a series of exercises, including:
  • Forwards- and reverse-engineering C++ and UML
  • Improving code quality using design patterns
  • Modifying a working, but poorly structured, application to increase flexibility, robustness and efficiency
  • Applying all the major components of the STL
  • Using namespaces, exceptions and templates to build reusable libraries
  • Debugging and correcting subtle errors

Course Content

Introduction to Object-Oriented Development

OO fundamentals

  • Inheritance, encapsulation and polymorphism
  • Classes, objects and attributes
  • Associations, messages and methods
  • Interfaces and abstract classes

Using the Unified Modeling Language

  • Characteristics of UML
  • Mapping UML into C++

Exploiting development tools

  • Automating the life cycle with CASE tools
  • Code generation and reverse engineering
  • Debuggers and browsers

Idioms and Design Patterns

C++ idioms

  • Handle/body and related idioms
  • Functors: functions coded as objects

Introducing design patterns

  • The motivation for design patterns
  • Categories of patterns: creational, behavioural and structural
  • Describing design patterns

Putting patterns to work

  • Synchronising multiple views with the Observer pattern
  • Handling recursive data structures with the Composite pattern
  • Minimising code duplication with the Template Method pattern
  • Managing object creation with the Singleton pattern

Using the ISO Standard C++ Library

The Standard Template Library (STL)

  • The structure of the STL
  • Declaring and populating sequence and associative containers
  • Accessing containers using iterators
  • Applying standard and user-supplied algorithms
  • Customising behaviour using function objects and adapters
  • Extending the STL

The new iostream library

  • Basic input/output
  • Formatting textual output
  • Handling errors in input data
  • Wide character types and internationalisation

Storage Management

Managing memory

  • Recognising and reducing memory overhead
  • Preventing memory leaks with the auto_ptr template
  • Overloading operator new and operator delete
  • Writing and using smart pointers

File storage

  • Preparing classes for simple file storage and retrieval
  • Storing and retrieving objects using Boost serialisation libraries

Writing Better C++

Increasing reusability

  • Avoiding name clashes using namespaces
  • Using templates for type-safe reusability

Improving robustness

  • Strengthening encapsulation by consistent and appropriate use of const
  • Implementing a coherent exception strategy
  • Decoupling algorithms from data structures with the Visitor pattern

Enhancing efficiency

  • Saving processing and memory with reference counting
  • Sharing state between lightweight objects

Avoiding C++ Traps and Pitfalls

Things you need to do—and why

  • Virtual destructors
  • Assignment operators and copy constructors

Features to handle with care

  • Friends vs. public members
  • Runtime-type information vs. virtual member functions
  • Multiple and virtual inheritance

<< Back to C++ och Perl
 

Related Courses


Learning Tree AnyWareTM is a trademark of Learning Tree International, Inc. in the United States and other countries, and is covered by a patent application pending in the United States.
 
C++ Best Practices and Design Patterns

Course Dates

Live online classroom training.Most events below can be taken in-class or live, online from your home or office with AnyWare.
18 - 21 JunStockholm enrol
16 - 19 OctStockholm enrol

UK Dates

10 - 13 JulLondon enrol
20 - 23 NovLondon enrol
26 - 29 MarLondon enrol

For AnyWare enrollments, please register at least 7 days prior to the start of the course.

More Dates and Locations.

 

On-Site &
Custom Training

Bring this or any Learning Tree course to your location or have it customized for your organization.

 

Kursdeltagarnas genomsnittsbedömning

De senaste 12 månadernas bedömningar

5 stjärnor:
73 %
4 stjärnor:
22 %
3 stjärnor:
5 %
2 stjärnor:   0 %
1 stjärna:   0 %

 
"Den Learning Tree-kurs jag gick gav mig en väldigt tydlig och omfattande introduktion till ämnet. Innehållet var genomgripande och instruktören höll högsta klass."



 
Ten Questions to Ask Your Training Provider - Position Paper