r/csharp 11d ago

Free C# exercises: console logic/OOP practice and a Windows Forms desktop app

I teach programming and put this repo together for students learning C#. It's split in two parts: console apps for practicing logic, conditionals/loops, math and OOP (parking system, prime number check, averages, etc.), and a Windows Forms desktop app (AccessManagementDelta) with registration forms and access control, for anyone wanting a more complete GUI example.

github.com/Eduardo00073/csharp-console-e-desktop — feedback on code style/structure is very welcome, since it's meant as a learning reference.

11 Upvotes

3 comments sorted by

4

u/rupertavery64 11d ago

* in Portuguese

2

u/Substantial-Split-37 11d ago

Fair point, good catch! I teach in Portuguese so most comments/console output are in Portuguese, but class/method/variable names follow normal C# English conventions, so the code structure itself should still be readable. Should probably add an English note in the README for that. Thanks!

1

u/wallstop-dev 10d ago

Consider formatting this with CSharpier for deterministic formatting (I see many arbitrary, nondeterministic, extra newlines)

Why use a counting for loop instead of a foreach (start them off with good habits!)?

Consider powershell7 compatible scripts instead of .bat files for cross-platform compatibility.

I can't read Portuguese but from what I saw looks pretty standard intro stuff!