Skip to content

PYL-26 software design improvement separate domain code from cli - #13

Merged
lesaint merged 4 commits into
mainfrom
sebastienlesaint/pyl-26-software-design-improvement-separate-domain-code-from-cli
Apr 29, 2024
Merged

PYL-26 software design improvement separate domain code from cli#13
lesaint merged 4 commits into
mainfrom
sebastienlesaint/pyl-26-software-design-improvement-separate-domain-code-from-cli

Conversation

@lesaint

Copy link
Copy Markdown
Owner

WHY

Currently, domain code is mix with code related to console interaction (ie. calls to print and input).

This creates complexity in both readability and testing. It also prevents future improvements where a User Interface will be used instead of a Command Line Interface.

WHAT

No more call to input and printshould exist in module pylms.pylms

HOW

  • create abstract class IOswith methods for collecting inputs and outputs regardless of implementation
  • create abstract class EventListener with method for informing users with operation about to happen and offer the opportunity to interrupt
  • use logging module to report search failures

@lesaintlesaint changed the title Sebastienlesaint/pyl 26 software design improvement separate domain code from cliPYL-26 software design improvement separate domain code from cliApr 29, 2024
@lesaint
lesaintforce-pushed the sebastienlesaint/pyl-26-software-design-improvement-separate-domain-code-from-cli branch from 6f3372c to f3c0e3bCompareApril 29, 2024 21:25
@sonarqubecloud

Copy link
Copy Markdown

@lesaint
lesaint merged commit f8df43a into mainApr 29, 2024
@lesaint
lesaint deleted the sebastienlesaint/pyl-26-software-design-improvement-separate-domain-code-from-cli branch April 29, 2024 21:26
Sign up for freeto 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.

1 participant

@lesaint