Development
Common Coding Mistakes University Students Should Avoid
Improve your debugging and coding habits with small, testable changes, useful error reports, and code you can explain.

Reproduce the error before changing code
Changing several files at once makes it hard to tell what solved the problem. Save the error message, list the steps that produced it, and try a small input that still fails. A bug that occurs for an empty list is easier to investigate when you can recreate it without loading a full database.
Test boundaries and failure paths
A feature that works with one ordinary input can still fail on the first unexpected value. For a registration form, try missing data, duplicate values, and a slow or failed request. Note what the user sees and what the application saves. Add a focused check where the behaviour matters.
Keep reviewable changes
Use version control early and make small commits with clear messages. Separate a fix from broad formatting changes so you can review or reverse it. Keep secrets and private data out of the repository. If you accidentally commit a credential, notify the account owner and rotate it rather than relying on deleting the file in a later commit.
Explain the code you bring into a project
Before adapting an example, check whether your course allows it and whether the code’s licence permits the intended use. Explain what each important part does. Try a small variation and predict the outcome. If you cannot tell why the result changed, use that question to guide your reading or mentoring session.
When you ask for help, bring the smallest failing example, what you expected, and what you already tried. Use the explanation to make and verify the fix yourself.
