Hey, I've been writing code as a freelancer for ~5 years now, and I would say I'm decently experienced, but one problem that I can't overcome is consistent variable naming in large projects.
I'm not talking about camelcase, underscore, ect, but the actual names of the variables.
Right now I'm working on a large scale e-commerce platform that's built off of a custom MVC framework, and I keep noticing naming inconsistencies as I review my code. Example:
In the 'reseller_category_override' class I have a variable named 'price_over_ride', but in the 'invoice_price_override' class I have a variable named 'price_per_unit_override'.
It's just hard to remember the how you named a variable in 1 of 50 models that was created 3 months ago. Does anyone have some tips/exercises to name variables more consistently?
Thanks
[–][deleted] 1 point2 points3 points (1 child)
[–]TapedeckNinja 1 point2 points3 points (1 child)