4 ms·
Function pointers I was a self-taught programmer as a teenager so there was a lot of theory and mental models I was missing. I viewed code as something static
by billyhoffman 4y ago
Function pointers
I was a self-taught programmer as a teenager so there was a lot of theory and mental models I was missing. I viewed code as something static I wrote into an editor and later interpreted (QBasic) or compiled and ran (C).
Learning about function pointers in C was transformational. I started thinking about code as data that can be called and passed around and even changed at runtime and suddenly things like cooperative multi tasking made sense to me.
- eps 4y agoComputed gotos are similarly mind-expanding :)