Finding and Removing Duplication

I worked on removing some duplication in the Elixir code base and adding a new feature. I wrote a step by step on finding and eliminating the duplication. I would love some feedback on other ways to find duplication. Are there any analysis tools that would help find this kind of thing?

Two Duplication Refactorings in Elixir

2 Likes

So…


That needs fixing. Your certificate is invalid for your domain name. ^.^

Non-https link: http://dirtyinformation.com/blog/2017/01/18/two_duplication_refactorings_in_elixir

1 Like

Thanks, I edited the original link too.

2 Likes

But yes, I saw you post this in the PR that you made this on recently, it is a good read on how you simplified a complex match expressions, people should read it. :slight_smile:

2 Likes