Skip to content
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

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open

Conversation

Kinguska
Copy link

@Kinguska Kinguska commented Dec 5, 2024

fixes #2

Copy link
Contributor

@webmaster442 webmaster442 left a 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
Copy link
Contributor

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
Copy link
Contributor

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)
Copy link
Contributor

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");
Copy link
Contributor

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
Copy link
Contributor

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");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Entity Framework 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IZT6ZK - Quiz
2 participants