I had to emulate inheritance with C in the early 90's using pointers to functions. Lived in a secluded place and didn't know about C++. When I learned C++ I thought I was in heaven.
Then I had to unlearn a bunch of bad habits from C. Thinking in classes is way different than calling functions, and it's way easier to avoid globals.
Also, for both C and C++, pointer arithmetic is how you slowly make your code unshippable. Besides been hard to maintain, it creates a breeding ground for security bugs. There be dragons.
View all comments
Show parent comment
7
u/[deleted] Nov 23 '17
Day 1: Start learning C++.
Day 19: You think it's going reasonably well. You might actually get through this.
Day 20: You come across pointers. You kill yourself.