https://github.com/liitlelenim/Chip-8Emulator
I am trying to learn modern C++ and I'd love to get some feedback on one of my first semi-finished project using it.
#Simple CHIP-8 emulator
9 messages · Page 1 of 1 (latest)
is there any reason for an entire random number generator module that has exactly one function
you don’t need to share the state of the random_device, they can just be created on the fly
and if your only has static data members, you can just make a namespace
no need to do the java oop thing where everything is in a class
I guess you're right using a namespace would be a better fit here. Would you recommend adding namespaces to every module in the project, or only to the number generator? I'm not sure what the idiomatic C++ approach is in case like this.
i personally would try to reduce the number of files and condense into larger modules which you’d then namespace
Thanks a lot for your feedback, I'll definitely try that
like for example hexadecimalsprites could be a namespace instead of a class etc