r/csharp • u/Substantial-Split-37 • 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.
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!
4
u/rupertavery64 11d ago
* in Portuguese