/js-cpp

Modern C++ and Modern JavaScript while very different languages, can be programmed in a similar style.

GNU General Public License v3.0GPL-3.0

js-cpp

Modern versions of C++ and JavaScript are very different languages, but they can be programmed in a similar styles.

  1. functions without classes
  2. class member functions
  3. The this pointer
  4. lambdas/arrow functions
  5. closures
  6. JS 1. https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript#closures
  7. C++ 1. https://leimao.github.io/blog/CPP-Closure/#:~:text=In%20C%2B%2B%2C%20lambda%20expression,that%20originated%20from%20functional%20programming.
  8. scope anywhere with {} blocks
  9. nested classes / structs
  10. destructuring ES6 & C++17 (but they call it different things)
  11. JS - destructuring assignment 1. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment
  12. C++ - structure binding declaration 1. https://en.cppreference.com/w/cpp/language/structured_binding
  13. range for loops
  14. initializing arrays with generated data
  15. IIFE - immediately invoke function expression
  16. web server code, express vs. Drogon (focus on the routes)