Top five C/C++ things/tips/tricks you wish you had known earlier and are now used very often

This page summarizes the projects mentioned and recommended in the original post on /r/cpp

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • MIDI2LR

    An application and plugin to remotely control Lightroom with a MIDI controller

  • For an example, look at the last few lines of the main class in a program I write, starting near the bottom of this file: https://github.com/rsjaffe/MIDI2LR/blob/master/src/application/Main.cpp at lines 488 or so, where the members of the main program class are declared. There are multiple lines of communication being set up, program configuration classes, etc. The members are constructed in the order they are declared, and you can see that some of the later members take references to the earlier members in their constructors. This is the dependency injection, and by doing it this way, I am forced to declare and construct the dependencies before I construct the members using those dependencies. And, since destruction goes in the opposite direction (bottom up), the dependencies remain valid until after all the classes using the dependencies are gone.

  • Experimental Boost.DI

    C++14 Dependency Injection Library

  • Funny you mention dependency injection, proposed Boost.DI shall be up for Boost peer review probably in March. https://boost-ext.github.io/di/

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts