Tools to help you understand other people's code

Embed Size (px)

Citation preview

Tools to help you better understand
other/your code

David Paluy, @dpaluy@RailsIsrael2013Blog: dpaluy.github.io

Agenda

Working with other people's code

Class Diagram

Outdated Gems

Test before Refactoring

Style your code

I am a Starter

It doesn't pay my bills, Yet!

Working with
Other People's Code

The only valid measurement of code quality: WTFs/minutesource

You need tools, to find the needle!

Class Diagram

Rails ERD

RailRoady

http://rails-erd.rubyforge.org/https://github.com/preston/railroady

Gems

bundle outdated

Tracking Gems

gem-changelog

changelog_diff (by David Miani)

gemnasium.com

https://github.com/sakuro/gem-changelog

https://gist.github.com/dpaluy/6855751

http://gemnasium.com/

Test before ...!

Each Developer has his own style?

Check your Style

roodi

rails_best_practices

sandi_meter

https://github.com/roodi/roodi

https://github.com/railsbp/rails_best_practices

https://github.com/makaroni4/sandi_meter

Summary

Any fool can write code that a computer can understand. Good programmers write code that humans can understand.Martin Fowler