Namespaces for variables in C++

  Рет қаралды 1,318

Code for yourself

Code for yourself

Күн бұрын

Пікірлер: 15
@ChrisOffner
@ChrisOffner 2 жыл бұрын
Very nice, clear and concise. Cheers!
@mohab.ahmed.033
@mohab.ahmed.033 2 жыл бұрын
Can't wait to see you doing openCV tutorial in the same fashion ❤️ Great effort ❤️
@WWraven
@WWraven 2 жыл бұрын
I really appreciate your tactics of tangling the best coding practices in parallel with the mainstream programming concepts as early as possible in the training. It transforms a coder into a professional programmer. Thank you !
@CodeForYourself
@CodeForYourself 2 жыл бұрын
Thanks for the kind words! In my experience these coding practices reduce the number of mistakes drastically. Today there is just no excuse to not bundle them in from the start. 👍
@ChrisOffner
@ChrisOffner 2 жыл бұрын
​@@CodeForYourself I couldn't agree more. Too often, programming is taught in a purely academic fashion where it's all about mere specifications and rules. Teaching best practices gained from practical experience, even opinionated ones, together with useful and up-to-date tools and tricks can get students up to speed so much more efficiently than just equipping them with the basic language specifications and leaving them to figure out all those practical matters themselves through tedious and time-intensive trial and error.
@tungvu4339
@tungvu4339 2 жыл бұрын
Great video!.
@kompila
@kompila 2 жыл бұрын
Sound explanation. Thank you.
@waleedazam7078
@waleedazam7078 2 жыл бұрын
Great Effort! Looking Forward to your videos! What do you think, how many videos you make for CPP?
@CodeForYourself
@CodeForYourself 2 жыл бұрын
Hard to say... 😬 There is a couple more videos for more interesting types than we have covered, a couple of videos about functions, then classes and then we dive deeper into how things work under the hood. In addition to that there will be some design patterns here and there. So there is still a lot of material to cover. 😅
@waleedazam7078
@waleedazam7078 2 жыл бұрын
@@CodeForYourself Excellent! Will look Forward! Love from Norway! Keep doing the great Job! #SaveUkraine
@CodeForYourself
@CodeForYourself 2 жыл бұрын
@@waleedazam7078 thanks for your support!
@wajihhassnain1671
@wajihhassnain1671 2 жыл бұрын
Hello,awesome tutorial. When I use char in namespace it gives segmentation fault (core dumped) error.
@CodeForYourself
@CodeForYourself 2 жыл бұрын
Could you be a bit more specific? What exactly are you trying to do? I would expect that it's not really related to using a namespaces but to something else, like storing chars in a vector and reading past it's size?
@minhhoanggia
@minhhoanggia 2 жыл бұрын
I understood that namespace cannot replace struct because it only groups variable names. Am I correct?
@CodeForYourself
@CodeForYourself 2 жыл бұрын
They certainly cannot. While structs actually store data together, namespaces just add the same prefix to variables but have no influence on where these variables live in memory.
Input/output streams in C++
4:19
Code for yourself
Рет қаралды 1 М.
C++ classes: the basics
13:24
Code for yourself
Рет қаралды 1,4 М.
When mom gets home, but you're in rollerblades.
00:40
Daniel LaBelle
Рет қаралды 134 МЛН
Yay, My Dad Is a Vending Machine! 🛍️😆 #funny #prank #comedy
00:17
Forbidden C++
33:07
javidx9
Рет қаралды 1 МЛН
Don't use static (outside of classes) in modern C++
15:56
Code for yourself
Рет қаралды 5 М.
Re-inventing move semantics in modern C++ in 13 minutes
13:20
Code for yourself
Рет қаралды 7 М.
How I use C++: a line-by-line code review
1:40:40
strager
Рет қаралды 277 М.
Const correctness in C++
10:02
Code for yourself
Рет қаралды 3,3 М.
Global Variables in C++... not as easy as it seems
18:25
The Cherno
Рет қаралды 65 М.
Why use templates in modern C++
12:32
Code for yourself
Рет қаралды 2,1 М.
Use static in classes (when needed) in modern C++
16:34
Code for yourself
Рет қаралды 1,6 М.
C++ From Scratch: Namespaces
5:50
CoffeeBeforeArch
Рет қаралды 1,6 М.