by xdertz · 5mo ago · 0 comments
I disagree. Hardcoded means you need to change and recompile the entire program. So neither an .env file nor model weights that are loaded at runtime are 'hardcoded'.
I would define it more broadly, "same input == same output, with the same program" and using that definition all computer programs are hardcoded in the end.
There is a gray area, you can consider that even programs that use random() are in the hardcoded category as with the same (semi)random value they will produce the same output. You just need to think of the random value as input, since not all input needs to be user input.