Skip to content

Conversation

@taufek
Copy link
Contributor

@taufek taufek commented Jan 20, 2018

While working on adding ComposerInstall hook in d9ac62e,
I noticed all the Install hooks mostly look the same with minor difference.

Extracted the common code to SimpleInstall module making things DRYer.

@taufek taufek force-pushed the tj-refactor-shared-install-hook branch from 22ac727 to 7c8ad33 Compare January 20, 2018 02:40
While working on adding `ComposerInstall` hook in d9ac62e,
I noticed all the Install hooks mostly look the same with minor difference.

Extracted the common code to `SimpleInstall` module making things DRYer.
@taufek taufek force-pushed the tj-refactor-shared-install-hook branch from 7c8ad33 to e0a31b3 Compare January 20, 2018 08:10
@sds
Copy link
Owner

sds commented Jan 21, 2018

Thanks for looking for opportunities to DRY up the code, @taufek. It's really appreciated.

In this case, I don't think the benefit is worthwhile. These implementations are already quite simple —a few lines each—and DRYing them up actually results in more lines of code overall.

If I'm missing something with what you're trying to achieve, let me know, but I'm going to close this as YAGNI for now. Thanks!

@sds sds closed this Jan 21, 2018
@taufek
Copy link
Contributor Author

taufek commented Jan 22, 2018

Understood. 👍🏻

@taufek taufek deleted the tj-refactor-shared-install-hook branch January 27, 2018 16:17
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