tubeshowcase●1,668,813 videos♡ My collection 0
← Learn to Code

Learn to Code16:18

31 nooby C++ habits you need to ditch

mCoding ↗

From the creator

How many nooby C++ habits do you have? Up your C++ skill by recognizing and ditching these nooby C++ habits. Post how many you fell for! ― mCoding with James Murphy (https://mcoding.io) Source code: https://github.com/mCodingLLC/VideosSampleCode C++ Core Guidelines: https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines SUPPORT ME ⭐ --------------------------------------------------- Patreon: https://patreon.com/mCoding Paypal: https://www.paypal.com/donate/?hosted_button_id=VJY5SLZ8BJHEE Other donations: https://mcoding.io/donate Top patrons and donors: Jameson, Laura M, Dragos C, Vahnekie, John Martin, Casey G, Pieter G, Krisztian M, Mutual Information, Sigmanificient BE ACTIVE IN MY COMMUNITY 😄 --------------------------------------------------- Discord: https://discord.gg/Ye9yJtZQuN Github: https://github.com/mCodingLLC/ Reddit: https://www.reddit.com/r/mCoding/ Facebook: https://www.facebook.com/james.mcoding CHAPTERS --------------------------------------------------- 0:00 Intro 0:13 #1. using namespace std 0:42 #2. using std endl in a loop 0:55 #3. index based for when range-for fits better 1:10 #4. rewriting std algorithms 1:34 #5. using C array over std array 1:50 #6. any use of reinterpret cast 2:39 #7. casting away const 3:24 #8. not knowing map bracket inserts element 3:39 #9. ignoring const-correctness 3:59 #10. not knowing string literal lifetime 4:12 #11. not using structured bindings 4:47 #12. out-params instead of returning a struct 5:04 #13. no

Published 2021-12-13 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code