Poor naming leads to confusion and harder maintenance.
Descriptive variable names help developers understand the code quickly. In e-commerce, using vague names like 'p' for product price can cause confusion. Instead, use 'productPrice' to convey meaning. For example, 'double productPrice = 29.99;' clearly indicates the variable's purpose, improving readability and easing future maintenance.
Additional Notes
What are the consequences of poor variable naming?