asharif123 / quiz_maker

Create a quiz asking user to add a list of questions, answers and ability to select correct answer.
0 stars 0 forks source link

Method should be in logic #13

Closed incredibleLeitman closed 7 months ago

incredibleLeitman commented 7 months ago

https://github.com/asharif123/quiz_maker/blob/69cbcee1fc86a177f7c0a486773e2b849f95697c/UIMethods.cs#L151-L156 Methods that dont interact with the user should be located in your logic class.

If you want to print what the program is doing in such methods you should not use Console.WriteLine() but either separate into two methods (one for ui and one for logic) or you should use the debug from Diagnostics: https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.debug.writeline?view=net-8.0 This way the output is not meant for the user, but only for internal tracking what your code do

asharif123 commented 7 months ago

fixed issue #13 by moving method into logic file