
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?
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 …
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 …
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 …
What does it mean when something is hard-coded like in gaming?
Jun 18, 2018 · 2 I'm trying to remove some restrictions programmed into a game like Sims 3 but some features like age restriction are hard-coded in the game's code so I read some tutorials …
database - When does one hard-code actual data values into the …
I don't think these two statements really represent a consensus about when to hard code data: If it is a single variable or a simple structure, or an array of a few values, put data right in the code …
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 …
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 …
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 …