Skip to content

alphafoobar/code-kata-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status codecov

Code Kata C++

  • These katas are from CodeKata, as a starting point.
  • This repository forms part of a collection of code kata in different languages.

This project is built in JetBrains CLion and using Travis-CI. It adheres to modern C++-17 and builds with G++-7 CMake ctests.

Worth knowing in modern C++

  1. Classes can be instantiated automatic or dynamic storage duration. Whenever possible use automatic storage duration! MyObject my_object{};
  2. C++ allows pass by reference, this is preferable for object passing. void my_function(MyObject &my_object)
  3. C/C++ header files must avoid circular dependencies and should not contain concrete implementations, this will cause linker errors.

Dependency management approach

Useful links

  1. C++ reference wiki