Post
Topic
Board Project Development
Re: Developing projects with AI
by
askii
on 22/05/2025, 14:28:29 UTC
But what surprised me wasn't this error, but rather other errors related to small details, such as this one:
DS wrote the code as follows:
Code:
private void btnBrowse_Click(object sender, EventArgs e)
{
// Button code here
}
A warning message appeared in Visual Basic:
Quote
Naming rule violation: These words must begin with upper case characters: btnBrowse_Click
This warning indicates that the event name btnBrowse_Click does not follow C# naming rules. According to naming rules, event names must begin with capital letters.

The problem can be easily fixed by using the letter B instead of b in the event name:
Code:
private void BtnBrowse_Click(object sender, EventArgs e)
{
// Button code here
}
Small errors can be easily fixed, but I'm surprised at how an advanced AI like DS can handle them, because tracking and fixing errors takes longer.

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.