rust-training icon indicating copy to clipboard operation
rust-training copied to clipboard

C++ cheatsheet

Open LeonMatthesKDAB opened this issue 7 months ago • 4 comments

@jonathanpallant I finally found some time to start on the C++ cheatsheet.

I'm not done yet, but if you have time, please take a quick look and let me know whether my approach fits with your expectations.

LeonMatthesKDAB avatar Apr 29 '25 15:04 LeonMatthesKDAB

Absolutely brilliant @LeonMatthesKDAB - exactly what I was looking for. I will re-read this every time I present to a C++ crowd, and now I'll be able to confidently use the C++ technical terms that the they will be familiar with.

jonathanpallant avatar Apr 29 '25 16:04 jonathanpallant

The Ferrocene failure is expected (sorry, you're a third party in this org).

The test failures are real - you can mark examples that aren't supposed to compile with ignore and ones that should compile but not run as no_run.

jonathanpallant avatar Apr 29 '25 16:04 jonathanpallant

Great to hear you like it :blush: thanks for the quick review.

Then I'll finish the rest of the material in a similar way. I'm at QtWS and RustWeek the next two weeks, so might only have time after that.

LeonMatthesKDAB avatar Apr 30 '25 08:04 LeonMatthesKDAB

This is super neat!

Found a few small nits and made one wording suggestion.

miguelraz avatar Apr 30 '25 22:04 miguelraz

I've pushed a copy of this branch into our repo, so it is now available at:

  • https://kdab-cpp-cheatsheet.ferrous-systems-rust-training.pages.dev/latest/slides
  • https://kdab-cpp-cheatsheet.ferrous-systems-rust-training.pages.dev/latest/book

jonathanpallant avatar May 27 '25 14:05 jonathanpallant

Try this to stop generating the cheatsheet as a slide deck:

diff --git a/training-slides/book.toml b/training-slides/book.toml
index 279281e..15a9b09 100644
--- a/training-slides/book.toml
+++ b/training-slides/book.toml
@@ -6,7 +6,7 @@ src = "src"
 title = "Rust Training Slides by Ferrous Systems"

 [mdslides]
-skip_slides = ["how-cheatsheets-work.md"]
+skip_slides = ["how-cheatsheets-work.md", "cpp-cheatsheet.md"]

 [preprocessor.graphviz]
 command = "mdbook-graphviz"

Please can you also rebase to pick up the build system changes?

jonathanpallant avatar May 27 '25 14:05 jonathanpallant

Thank you for all your help on this. I shall refer to it next week!

jonathanpallant avatar May 29 '25 10:05 jonathanpallant