hard-code, hard-coded, hard-coding

Always hyphenate.

OK to use in content for a technical audience when writing about a routine or program that uses embedded constants (in place of more general input). Don't use in content for a general audience.