#How often are symbolic constants used instead of constants in production code?
6 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
Symbolic constants (#defines) are used all the time in C, see this for why:
https://stackoverflow.com/a/5062052/13279557
See also this video by Jacob Sorber on the question:
https://youtu.be/8a3HyL1VN0Q
Patreon ➤ https://www.patreon.com/jacobsorber
Courses ➤ https://jacobsorber.thinkific.com
Website ➤ https://www.jacobsorber.com
A const int is not a constant // seriously. It's one of the oddest things about C, but it's true. In this video, I'll show you a few examples.
Welcome! I post videos that help you learn to program and becom...
wtf is "production code".... sounds like mroe made up corporate speak.
We use the term "production code".
In our case, it signifies code that will be officially built and released into the wild.
Other code that isn't "production code" includes test frameworks, engineering UIs, unit tests etc.
Most - if not all - code will get peer-reviewed.
But only "production code" will get linted.