Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

0 votes

Why are magic numbers bad practice?

In general, and as others have said, things used in multiple places should have a single source of truth to update when you need to change the value. The other primary reason is that a plain number ...
Iiridayn's user avatar
  • 237

Top 50 recent answers are included