General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Anony Mousse
Kantan Coding
comments
Comments by "Anony Mousse" (@anon_y_mousse) on "The 3 Laws of Writing Readable Code" video.
I actually figured out that last example even with the poor naming scheme, but it's still poorly written even after renaming because it should just be `t = 1.08` with it later using `tc += p.P * t`. Of course, even that is still too simple because tax rates vary by jurisdiction and it should retrieve the tax rate from a database or other resource. For instance, where I live the sales tax, including state and federal, would be 8.25% and thus the multiplier should be 1.0825 and not 1.08 . But perhaps that is too nitpicky.
1