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

@lesaint lesaint commented Apr 29, 2024

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

@lesaint lesaint changed the title Sebastienlesaint/pyl 26 software design improvement separate domain code from cli PYL-26 software design improvement separate domain code from cli Apr 29, 2024
@lesaint
lesaint force-pushed the sebastienlesaint/pyl-26-software-design-improvement-separate-domain-code-from-cli branch from 6f3372c to f3c0e3b Compare April 29, 2024 21:25
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
7 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@lesaint
lesaint merged commit f8df43a into main Apr 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 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.

1 participant