-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quiz app project #39
base: main
Are you sure you want to change the base?
Quiz app project #39
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Szép munka
@@ -0,0 +1,269 @@ | |||
# Remove the line below if you want to inherit .editorconfig settings from higher directories |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
editorconfig 👍
using System.Threading.Tasks; | ||
|
||
namespace IZT6ZK.Assists; | ||
internal class ConsoleHelper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A Helper suffix-et én architektként nagyon nagyon nem szeretem, mégpedig azért mert szerintem az esetek 90%-ban arra utal, hogy gond adódott az elnevezéssel :D. Ugyan ilyen semmit mondó nevek még a Context és a Utilities. Ezek használata kerülendő.
{ | ||
Console.WriteLine("Write 'quit all' if you want to quit all of the questions.\n"); | ||
} | ||
public static string ReadAndWrite(string whatWeWantToAskFromUser) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Single responsibility?
switch (stateQuestionReading) | ||
{ | ||
case CreateQuestionStateMachine.QuestionReading: | ||
input = ConsoleHelper.ReadAndWrite("your question"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huhh, It a Case minden ága lehetne egy külön metódus is akár, mert ez így baromira átláthatatlan.
|
||
namespace IZT6ZK.Db; | ||
|
||
internal interface IDbManager |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interfész 👍 , de a feladatai alapján ennek legalább kettőnek kellene lennie szerintem.
} | ||
protected override void OnConfiguring(DbContextOptionsBuilder options) | ||
=> options | ||
.UseSqlite($"Data Source=questions.db"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Entity Framework 👍
fixes #2