To me itβs a fun language because of the weird ways you can play with pointers. It is also a terrible language because of the weird ways pointers can play with you.
And trying to cast a pointer to somewhere inside a multi-dimensional array is one of the torments AM inflicts on survivors in I Have No Mouth And I Must Scream.
The Basilisk: I mean, they could have learned a little Python, a little Tensorflow, something about NLPs, but no, they chose not to. Now they're just going to debug legacy C++ for eternity
As a beginner, pointers and mutli-dimensional arrays suck implementing your first few times. As someone who has been using them on and off for a few years... they are easy once you understand all the sizes in bytes correctly. It's actually a nice exercise. 4/5 times when you get something wrong, the compiler complains. The other 1/5th time the program tends to crash loudly. It's painful to learn your first time-that's for sure.
I prefer these types of problems compared to the ones that never complain and set you up to have future regressions the next time someone so much as looks at the code.
C++ is great, you can do so much. C++ is awful, you can do so much. C++ is amazing, it's about the only language you can do basically anything you want at compile time and optimize in amazing ways. C++ wtf, why are templates turing complete?
I love C++. It is both the best and worst. I might need to type const 7 times in a method signiture, but man do I miss when I can't type const 7 times in a function signiture to make the constraints I want.
2.0k
u/barkbeatle3 Apr 08 '22
To me itβs a fun language because of the weird ways you can play with pointers. It is also a terrible language because of the weird ways pointers can play with you.