Back to Browse

Problem Solving with Abstraction | part 3/3

2.0K views
Oct 19, 2025
38:53

Abstraction is a very powerful tool for problem solving, and this is the final part of a shot series where I demonstrate how I implement a new feature by abstracting into something it has in common with some of the existing code. In part 1, I learnt to copy existing code and modify it - but quickly ran out of code to copy. In part 2, I learnt about handling multiple levels of abstraction, and that I should stick to a Single Level of Abstraction in all my functions. So in this part I'll clean up the code to limit the number of abstractions I have to deal with - and find a way to use abstractions to focus my effort on implementing completely new features. If you haven't watched the previous parts, start with part 1 here: https://youtu.be/nuRbPv6q2CI and find part 2 here: https://youtu.be/KQEtEPQfdjU 00:00 - Intro and recap 00:52 - Fixing the Problem 08:56 - Adding a new feature 17:06 - Completing the feature / task 23:47 - Conclusion 29:05 - Closing remarks 33:36 - Outro 🗎 Guide for Problem Solving with Abstraction: https://peterlind.dk/programming2.0/guides/problem-solving-with-abstraction.pdf This is the final part - although I do tease future videos about other aspects of abstraction - but they are far in the future. Subtitles are available in English and Danish. The code is available at https://github.com/programming2point0/asteroids in the 02-problem-solving branch. See the accompanying video for detailed instructions, and more code-work than shown in this video (link: https://www.youtube.com/watch?v=C04r2qVpOC8) == *Credits* == 🎼Theme music by: *km/h* 📼Background water stock videos by _Vecteezy_ (https://www.vecteezy.com/free-videos/underwater) 📼Short clip from "Do It Yourself Mr. Bean" from 1994, available on the official Mr Bean channel: https://www.youtube.com/watch?v=IqFGj837W9A == *References* == _Books_ 📖 John Raynes A.R.C.A. & Jody Raynes "How to draw the Human Figure" (2000) - available at https://archive.org/details/howtodrawhumanfi0000rayn _Artworks_ 🖼️ https://en.wikipedia.org/wiki/Girl_with_a_Mandolin

Download

0 formats

No download links available.

Problem Solving with Abstraction | part 3/3 | NatokHD