
Are there advantages to hard-coding data values into a program?
Aug 10, 2016 · Hard coding (also hard-coding or hardcoding) refers to the software development practice of embedding what may, perhaps only in retrospect, be considered an input or …
"Hard coded" vs. configuration files for values in libraries? (code ...
May 24, 2021 · Hard-coding these values also comes at a hidden cost. It needs to be stored some place, and from the sound of it, this data will be scattered all over a bunch of files. I would …
Is it ever a good idea to hardcode values into our applications?
Apr 14, 2011 · 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?
object oriented - How to explain to a layman the disadvantages of ...
Sep 23, 2016 · First of all, don't offer the layman "hard-coding" as a way of speeding things up! You're already doing agile, so of course you are not doing any YAGNI, and you are doing …
Avoiding hard-coded format strings - Software Engineering Stack …
In C, we like to use #define or const globals to avoid hard-coding values and strings. How can we avoid hard-coding strings that need to be formatted? Consider, for instance, building a filepath t...
What is "Soft Coding", really? - Software Engineering Stack Exchange
Apr 8, 2016 · Soft-coding for a rule might me defining a specific class/method or use the Builder pattern. For values, soft-coding can mean defining a single constant or enum for the value to …
Is "string literal" always the same as "hard-coded string"?
If there is a configuration file with a hard-coded string, and the configuration file is taken as input to the code, then the value is hard-coded in the configuration file, and not hard-coded in the …
How can hard-coding be considered a code smell in the age of …
Mar 28, 2018 · 2 Do people not understand that hard-coding as an intermediate step allows an additional stage of testing to be undertaken on highly scalable systems in a manner that …
Removing hard-coded values and defensive design vs YAGNI
Hard-coding values is bad design, but going to the trouble of removing the values from the application seems to violate the YAGNI principle. EDIT To clarify the question, I'm not …
design - Hardcoding strings that will never change - Software ...
Jun 2, 2015 · The good part about this is that even though the strings will be hard-coded, it is a very small set of strings/rules that are unlikely to change anytime soon (as it's natural …