Is it ever a good idea to hardcode values into our applications? Or is it always the right thing to call these types of values dynamically in case they need to change?
Is it ever a good idea to hardcode values into our applications?
programming practices
Yes, but do make it obvious. Do:use constantsuse a descriptive variable nameDon't:have any magic numbers floating around the code