Strange code convention for exercises in ObjectProgramming
In 2-ObjectProgramming/2b-hands-on.ipynb it is asked to transform compute_power_of_2_approx()
that will become a method named Compute()
.
In 2-ObjectProgramming/3b-hands-on.ipynb it is asked to introduce a method AsDouble()
.
From the beginning, the code convention for the exercises were:
- Classes are named with camel case starting with uppercase E.g.
PowerOfTwoApprox
. - Member functions and free functions are in lowercase and use underscore separators. E.g.
void display_power_of_2_approx(int Nbits, double value)
. But in the course, classes, member functions and free functions are upper camel case.
Any preference ? It should be coherent. Maybe easier to modify on exercises.