Загрузка страницы

On C programming, switch-cases and the GOSUB

The switch-statement in C and C++ is an interesting construct lending itself to many unorthodox uses. In this video I explore some of those uses. I also showcase a little BASIC program (visible from 1:16 through 1:42) that I wrote in 1993.
WARNING: May include trace amounts of rant!

Twitter: https://twitter.com/RealBisqwit
Patreon: https://patreon.com/Bisqwit (alternatives at https://iki.fi/bisqwit/donate.html)
Twitch: https://twitch.tv/RealBisqwit
Homepage: https://iki.fi/bisqwit/

Third-party software information, in approximate order of appearance:
• Operating system: Debian GNU/Linux ― http://debian.org/
• Graphics window system: X.Org
• Window manager: Enlightenment
• Window theme: 23oz (only used for window borders)
• Editor: joe ― http://joe-editor.sourceforge.net/ *
• Terminal: aterm ― http://www.afterstep.org/aterm.php
• Terminal: xterm ― http://en.wikipedia.org/wiki/Xterm
• Compiler: GCC ― http://gcc.gnu.org/
• Compiler: Clang ― http://clang.llvm.org/
• Interpreter: GW-BASIC ― http://en.wikipedia.org/wiki/GW-BASIC
• Platform emulator: DOSBox ― http://www.dosbox.com/
• Window sitter: Macopix ― http://rosegray.sakura.ne.jp/macopix/index-e.html

*) In most of my programming videos I use a custom editor I wrote myself for use in DOSBox. This video however was not created in DOSBox, but in a real Linux desktop, although a staged one for video making. My own editor only runs in DOS, so I used Joe here. Or more to the point, I don't use Joe in DOSBox, because it does not run in DOS. That's why I created my own editor. So in this video I used Joe, i.e. Joseph Allen's editor.

Addendum: In my view, lambda functions / closures target pretty much the same goal and purpose that GOSUB does, even though it is not exactly the same. I'm glad C++ has lambda functions today.

The entire source code of the dirt-dropping program (that is shown in the end of the video) is seen at 1:32.

Видео On C programming, switch-cases and the GOSUB канала Bisqwit
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
12 апреля 2014 г. 3:48:36
00:07:01
Яндекс.Метрика