filmov
tv
C++ Programming Practice (Fall 2023) - 10.01 - Templates

Показать описание
Note: There is a bug in the code for the templated findMax function (at the end of this video): In the for-each loop, the type of the iteration variable should be auto, not int. If I had tested the code better in the video, this bug would have been obvious and easily fixed...
The best way to learn programming is by programming. For new programmers, even finding enough practice problems can be a challenge. But now, thanks to generative AI, it's easy for anyone to request customized practice exercises on the fly.
Contents:
0:00 Introduction
4:06 Exercise 1 (Six templated functions)
29:25 Exercise 2 Preamble
31:32 Exercise 2 (Two more templated functions)
38:29 Exercise 3 Preamble
40:10 Exercise 3 (Templatizing)
This video series was originally made for the Fall 2023 offering of CSC 116, a second programming course teaching the C++ language (to students who already know C). The point of these videos is to demonstrate how helpful (or sometimes not helpful) generative AI tools can be when learning programming, and to provide some extra practice for programming students.
These videos were recorded in one sitting with no editing or script, so they also document the raw process of writing code, including all of the design decisions, fumbling, compromises, dead ends, compile errors, bugs and frustrating debugging sessions.
If you find any of this helpful or interesting, please let me know (I really appreciate any other feedback as well).
The best way to learn programming is by programming. For new programmers, even finding enough practice problems can be a challenge. But now, thanks to generative AI, it's easy for anyone to request customized practice exercises on the fly.
Contents:
0:00 Introduction
4:06 Exercise 1 (Six templated functions)
29:25 Exercise 2 Preamble
31:32 Exercise 2 (Two more templated functions)
38:29 Exercise 3 Preamble
40:10 Exercise 3 (Templatizing)
This video series was originally made for the Fall 2023 offering of CSC 116, a second programming course teaching the C++ language (to students who already know C). The point of these videos is to demonstrate how helpful (or sometimes not helpful) generative AI tools can be when learning programming, and to provide some extra practice for programming students.
These videos were recorded in one sitting with no editing or script, so they also document the raw process of writing code, including all of the design decisions, fumbling, compromises, dead ends, compile errors, bugs and frustrating debugging sessions.
If you find any of this helpful or interesting, please let me know (I really appreciate any other feedback as well).