Conversation
I'm so sick of programming. I hate it. All software is a huge pile of mistakes glued together. Like come one, is this the best programming can produce? The world is full of people smarter than me, how can nobody fix this mess. And if smart people fail so horribly, where the hell is my place in life?
0
3
9
@IsMailinatorBlocked serious question, how to not OOP? consider the following scenario: I have a grid of things, I only ever select one at a time. when I hit some key a function for the selected tile shall be called. in c++ the grid would be a list of objects, they would have a common parent class and implement their own versions of that function.
in c the equivalent would be to use structs and function pointers (per instance or type) so what's the point of c in this example? and more importantly: how can I efficiently implement this scenario without OOP?
(no "use a switch", consider 100s of types)
3
0
0