Junior
What signs indicate the presence of hardcoding in the code?
sobes.tech AI
Answer from AI
- Magic numbers and strings not extracted into constants or resources.
- File paths, URLs, API keys hardcoded in the code.
- Values directly used in logic that may change (e.g., UI element sizes, colors).
- Dependencies on external libraries or services without using interfaces or dependency injection.
- Direct resource access without using
@string,@color,@dimen, etc. - Unused or duplicated code fragments with identical hardcoded values.