Redsart / TodoApp

This repo is for practice and learning purposes, so please do not submit PRs.
1 stars 1 forks source link

Console App: Refactor the main class #7

Closed kpau closed 4 years ago

kpau commented 4 years ago

Rename ConsoleAppMain class to Program. This class should contain only the main loop which will read and react to commands. Program is a standard class name for the main entry point of the application, the same way as Main() is a standard method name for the entry point.

Create a new folder - Services. Inside, create another class TodoService which will be used to do the CRUD operations. This class will contain the methods for these operations.

This way we will separate the different responsibilities - one class will read and react on user commands, the other will do the actual work with the Todos.

(CRUD = Create, Read, Update, Delete)

kpau commented 4 years ago

This is set to review but there is no Pull-Request. @Redsart , please create one and link it with this issue. Thanks!

Redsart commented 4 years ago

22 Refactor the main class #7

kpau commented 4 years ago

PR Merged.