This is just a style convention thing, not an error. But ChatGPT has the same problem... My guess is that for simple functions like this, LLMs pick up patterns from older codebases, and since many legacy projects used Hungarian notation, that is what DeepSeek or GPT will use. If, in your prompt, you explicitly specify something along the lines of "always follow Microsoft's C# guidelines", it will not make these types of mistakes.
If the AI is converting code from one language to another, it may use the style of either language unless you are explicit.
Common naming styles in programming (2025)
Name | Example | Where Used |
camelCase | userName | JS variables/functions, Java |
PascalCase | UserName | Classes, React Components |
snake_case | user_name | Python, Ruby, SQL |
SCREAMING_SNAKE_CASE | USER_NAME | Constants, ENV vars |
kebab-case | user-name | URLs, CSS class names |
Hungarian Notation | strUserName | Older C/C++/VB code |
StudlyCaps | uSeRnAmE | Memes, jokes, passwords |
dot.notation | user.name | Configs, object keys |
* AI generated - I'm not going to take the time to format to BBCode.