Skip to content

Conversation

@fadeevab
Copy link
Owner

@fadeevab fadeevab commented Aug 27, 2022

The aim is to demonstrate a value of the Factory Method pattern.

Maze Game

The Game trait (interface) should be decoupled modularly from impls.
It would demonstrate that there could be many implementations, and the game runs similarly with different ones.

GUI examples (Render a dialog)

The aim is to demonstrate a value of the Factory Method by decoupling interfaces and implementations.
gui contains interfaces and implementations are in the other modules.
Although, the full decoupling is going to be demonstrated in the Abstract Factory example.

@fadeevab fadeevab force-pushed the feature/maze-game-alternative branch from b754af0 to 4eeb127 Compare August 27, 2022 10:10
@fadeevab
Copy link
Owner Author

@neochief Does it look more compelling from the point of view providing more value in understanding the pattern?

The aim is to demonstrate a value of the Factory Method pattern.
The Game trait (interface) should be decoupled modularly from impls.
It would demonstrate that there could be many implementations, and
the game runs similarly with different ones.
@fadeevab fadeevab force-pushed the feature/maze-game-alternative branch from 4eeb127 to f8497c1 Compare August 28, 2022 15:50
@fadeevab fadeevab changed the title Provide an alternative structure of Maze Game Provide an alternative structure of Factory Method examples Aug 28, 2022
@fadeevab
Copy link
Owner Author

@FlrnFrmm @neocheif All right, both Factory Method examples were refactored with the aim to demonstrate a greater decoupling of traits and implementations. I'm going to keep a simplified structure though.

There is another PR #5 which demonstrates a full separation of components in the different libraries.

I think all this added value to learners to figure the pattern out.

The aim is to demonstrate a value of the Factory Method
by decoupling interfaces and implementations.
Although, the full decoupling is going to be demonstrated in
the Abstract Factory example.
@fadeevab fadeevab force-pushed the feature/maze-game-alternative branch from aeeb2eb to 7f39a7a Compare August 28, 2022 19:29
@fadeevab fadeevab merged commit a7a76b6 into main Aug 30, 2022
@fadeevab fadeevab deleted the feature/maze-game-alternative branch August 30, 2022 13:00
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.

2 participants