Post
Topic
Board Project Development
Re: Developing projects with AI
by
Vod
on 22/05/2025, 21:11:23 UTC
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.

NameExampleWhere Used
camelCaseuserNameJS variables/functions, Java
PascalCaseUserNameClasses, React Components
snake_caseuser_namePython, Ruby, SQL
SCREAMING_SNAKE_CASEUSER_NAMEConstants, ENV vars
kebab-caseuser-nameURLs, CSS class names
Hungarian NotationstrUserNameOlder C/C++/VB code
StudlyCapsuSeRnAmEMemes, jokes, passwords
dot.notationuser.nameConfigs, object keys

* AI generated - I'm not going to take the time to format to BBCode.