Friday, June 2, 2023

Personal tastes & Unit Tests


Personal tastes

All come down to personal preferences, we can't control all things. This style works, it have it's positive and negative. Other styles will have the same. C++ is probably great, still is the same it have positive and negative. If something works and you can create large code or a engine on it you can't say it failed is just a matter of personal style.

If any day you thingking in adding code to the box will be pretty easy you just need to see standard global variables , that are in the "header_files" folder, now i thing it is called rpg.h made a couple of mistakes in this version it should be called game_structure.h or standard variables in the future, and add them to objects. If your code alter the state of the variables, other code can still be added.

global variable.
object c++
procedural code

For example one aspect of C++ you will not get that much performance as C procedural, C procedural will not do much as C++ to start width (code). Etc...

https://stackoverflow.com/questions/199 ... -in-c-code


Liberta one time you mention structural programming already exist, but is not the same thing. This method derive from studying MVC it works the same way; the main, will load stuff in to it. Is more "Pattern programming" or "Pattern structural programming" probably more accurate.
-------------------------------

Unit Tests

Some one at discord "The code Den", say to implement unit tests. I was reading about, is the same as the Box or structural programming is not a framework, as i though in begging "why implement a framework to test code which will require X hundred of hours to learn it will not be very productive". But i as reading is just a method like the box not a framework; It can be a framework but to start is a method.

If you want to study methodology https://en.wikipedia.org/wiki/Unit_testing you have here the unity tests, it is the same as the box, don't know if i need it because once we start repeating code, it will always the same we no longer add or learn new stuff. I code for hundreds of hours width out any errors, another method for errors probably to much.

"I will see how it goes..."

No comments:

Post a Comment

hi

Rules

Rules, Steps & methods This is the current way to implement and be implemented but there could be more things to add : Root or loader  (...