Hello -
Suppose you have this code in a Ruby project:
[1,2,3].select {|x| x > 1 }.first
That can obviously be simplified to:
[1,2,3].detect {|x| x > 1 }
pippi is a utility that helps to find suboptimal API usage like this.
Much more here:
http://thomasleecopeland.com/2014/10/22/finding-suboptimal-api-usage.html
Enjoy!
Yours,
Tom