One hint for loops you might ask yourself - why is there a while and a for loop? While - we don't need how often we will run it (for instance, user input) For - we know how long we will run it (which would be the best practice for this example as the array has a fixed size)
There is a popular thead on stack overflow that explains why a double nested for loop is faster than the same number of iterations as a single for loop. It would be an interesting video if you go over that phenomenon.
Can you send me the program that inspired this thread? Nested loops shouldn't be faster unless there's some sort of odd compiler optimization or memory caching effect going on.
Note that the continue statement skips to the end of the current iteration, not the start of the next. The condition is checked and the "post" statement is executed.
Thanks, James. I'll add it to my list. I honestly haven't paid much attention to the differences. So, I'll have to do some digging and see what I come up with.
Dear Professor, Thank you for all the videos, they’ve been very informative for me. However, I have to say they are really speedy, even my eyes cannot follow what’s being typed. The viewers, to be able to learn, need some proper time to process. Sometimes I need to play back 3 times and watch a point in the video to understand what’s going on. When you speak, that’s fine, but, when you code, I have problem following the vid.
This video is so good. Glad to have found the channel.
One hint for loops you might ask yourself - why is there a while and a for loop?
While - we don't need how often we will run it (for instance, user input)
For - we know how long we will run it (which would be the best practice for this example as the array has a fixed size)
I like Go which got rid of while and do-while. The For loop does what you need.
There is a popular thead on stack overflow that explains why a double nested for loop is faster than the same number of iterations as a single for loop.
It would be an interesting video if you go over that phenomenon.
Can you send me the program that inspired this thread? Nested loops shouldn't be faster unless there's some sort of odd compiler optimization or memory caching effect going on.
Woah, can u give me a link for that thread?
This is crazy u made me to understand loops In a 3 min video
Note that the continue statement skips to the end of the current iteration, not the start of the next.
The condition is checked and the "post" statement is executed.
Thanks for your awesome contents. Maybe do a video on libc and its implementations like Glibc, musl, newlib and what-Microsoft-uses-libc?
Thanks, James. I'll add it to my list. I honestly haven't paid much attention to the differences. So, I'll have to do some digging and see what I come up with.
Dear Professor, Thank you for all the videos, they’ve been very informative for me. However, I have to say they are really speedy, even my eyes cannot follow what’s being typed. The viewers, to be able to learn, need some proper time to process. Sometimes I need to play back 3 times and watch a point in the video to understand what’s going on. When you speak, that’s fine, but, when you code, I have problem following the vid.
Sorry about that. I'll try to slow down in the future on the coding portions. In the meantime, thankfully there's pause and replay. :)
Why the background music? So annoying...