Tuesday, July 20, 2010

Code Complexity Visualization for Ruby




Image from http://www.osnews.com/story/19266/WTFs_m



WTF implies lack of clarity. Clear code is easier to understand, easier to maintain and easier to extend.

Announcing saikuro_treemap -- an easy to setup tool to generate complexity treemaps of ruby code.

See a demo for yourself.

2 comments:

Bill la Forge said...

WTF's can also result from the use of new or unfamiliar ideas which result in code that does things that are not otherwise achievable.

Case in point, the JActor project. This is a high-performance actor implementation. Another actor implementation, which is reputed to be VERY fast has only just achieved a message rate of 25 million messages per second. JActor does 840 million messages per second. That's a very big WTF?"

https://github.com/laforge49/JActor

Bill la Forge said...

Sorry. I should have said that that other actor implementation is Akka 2.0.