3 ms·
The code is just normalized to separate each bit of functionality and each class into its own source file, which IMO can hardly be seen as a negative. Yes you c
by w0utert 11y ago
The code is just normalized to separate each bit of functionality and each class into its own source file, which IMO can hardly be seen as a negative. Yes you could do the same in a lot less lines of code, in a single source file, but that does not necessarily mean the code would be 'better' (easier to read, debug, maintain), just shorter and easier to analyse by quickly scanning it. If someone would ever like to add more advanced features to this simulator, the advantages of the normalisation and separation of concerns will quickly outweigh the 'downside' of having a few more files than absolutely necessary.