Skip to content

Conversation

bidoubiwa
Copy link
Contributor

@bidoubiwa bidoubiwa commented Apr 4, 2022

In an effort to make a more maintainable code the huge function creating the search parameters is replaced by a more modular object creator.

It is made based on the adapter pattern see refactoring guru. With a somewhat similar example in javascript here

@bidoubiwa bidoubiwa added refactor skip-changelog The PR will not appear in the release changelogs labels Apr 4, 2022
@bidoubiwa bidoubiwa marked this pull request as ready for review April 4, 2022 17:20
@bidoubiwa bidoubiwa requested a review from brunoocasali April 4, 2022 17:20
Copy link
Member

@brunoocasali brunoocasali left a comment

Choose a reason for hiding this comment

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

@bidoubiwa, I need to understand how typescript works and how we can deal with a legacy OOP/Class oriented style to functional programming.

In general just the naming I think we can iterate over 😄

I left some comments about the code, but in the end, I want to say that is precisely the kind of discussion I would like to have here :)

Congrats on your work!

Copy link
Member

@brunoocasali brunoocasali left a comment

Choose a reason for hiding this comment

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

❤️

@bidoubiwa
Copy link
Contributor Author

bors merge

@meili-bors
Copy link
Contributor

meili-bors bot commented Jul 26, 2022

@meili-bors meili-bors bot merged commit dd7cd75 into main Jul 26, 2022
@meili-bors meili-bors bot deleted the builder_like branch July 26, 2022 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor skip-changelog The PR will not appear in the release changelogs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants