Questions tagged [hardcode]

It is the development practice of writing data considered as configuration or input directly in source code.

Hardcoding is considered a bad practice, source code must be changed every time programmer want to change the hardcoded data. It is commonly used when writing programs that should accept user's input, to avoid complexity the programmer should prefer hardcode the input data in the source code instead handle real input.

153 questions
-2
votes
1 answer

VBA selective hardcoding / Paste values if string in cell matches specific string

First time posting for me and hoping to get some help with VBA for selective hardcoding. I currently have a column into which a formula is set which returns either blank or a variety of text strings (the status of our company's orders). I need to…
-2
votes
1 answer

3D: What to hardcode and what not

I just wonder what do I hardcode in my game? E.g do I have an external file for every Enemy properties so on or do I make a class? So what info/stuff should I code and what should I have as a .file? Cheers!
AndroidXTr3meN
  • 399
  • 2
  • 9
  • 19
-3
votes
2 answers

PDO insert multiple rows with key and values as array

my array looks like: Array ( [name] => Array ( [0] => Matrix [1] => Ryan ) [surname] => Array ( [0] => Relaoded [1] => Lose ) ) my problem is that, the key…
beater
  • 15
  • 2
  • 7
1 2 3
10
11