News for hackers. Stuff that matters.
Re:The use of ‘class’ for things that should be simple free ... by hiq on Sunday May 29, 2022 @01:18PM (#31550825)
I don't know if people should but people definitely do. When I review code, if a constant is inlined in several places (e.g. "https" is used instead of `PROTOCOL = "https"`), I have to check at every place that there's no typo. With a constant I just have to check once.

There are no comments on this comment yet.