tag:blogger.com,1999:blog-24599054.post6957126881850970484..comments2024-02-07T00:23:34.835-07:00Comments on On Ruby: Questions Five Ways - Static Code Analysis and Testinggnupatehttp://www.blogger.com/profile/10492341480170667775noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-24599054.post-10537087763476889672009-06-02T17:54:21.535-07:002009-06-02T17:54:21.535-07:00Looks like the link got lost in my last post: http...Looks like the link got lost in my last post: http://groups.google.com/group/excellent-gemmarcoowhttps://www.blogger.com/profile/03624427273485825091noreply@blogger.comtag:blogger.com,1999:blog-24599054.post-90824688538676418142009-06-01T22:27:02.243-07:002009-06-01T22:27:02.243-07:00I just created the excellent group. I hope lots of...I just created the excellent group. I hope lots of people will join and come up with interesting suggestions/ ideas and criticue.marcoowhttps://www.blogger.com/profile/03624427273485825091noreply@blogger.comtag:blogger.com,1999:blog-24599054.post-13664430487683579132009-06-01T03:07:40.308-07:002009-06-01T03:07:40.308-07:00Marco,
Very cool. Do you have a mailing list/goog...Marco,<br />Very cool. Do you have a mailing list/google group set up? It seems like that would be the ideal way to get discussion flowing about excellent.<br /><br />Kevin,<br />Nice, between ABC and Cyclometric complexity checking Ruby's starting to get a good toolkit built.gnupatehttps://www.blogger.com/profile/10492341480170667775noreply@blogger.comtag:blogger.com,1999:blog-24599054.post-15544678108777995702009-06-01T01:14:18.663-07:002009-06-01T01:14:18.663-07:00Since this discussion I've (with the help of Marty...Since this discussion I've (with the help of Marty Andrews) begun a spike implementation of the CRAP metric for Ruby code; watch <A HREF="http://github.com/kevinrutherford/crap4r/tree/master" REL="nofollow">http://github.com/kevinrutherford/crap4r/tree/master</A> for progress in the coming weeks.Kevin Rutherfordhttp://silkandspinach.netnoreply@blogger.comtag:blogger.com,1999:blog-24599054.post-42266986565918107122009-05-31T23:10:30.323-07:002009-05-31T23:10:30.323-07:00@pate: Excellent includes about 15 checks by now a...@pate: Excellent includes about 15 checks by now and I'm definitely planning on extending that number. I absolutely would appreciate suggestions for new checks to write and include in the gem!marcoowhttps://www.blogger.com/profile/03624427273485825091noreply@blogger.comtag:blogger.com,1999:blog-24599054.post-84734519183364412932009-05-31T07:30:45.953-07:002009-05-31T07:30:45.953-07:00Marco,
cool. It will be interesting to see what k...Marco,<br />cool. It will be interesting to see what kind of community grows around it, and what kinds checks are written.<br /><br />Have you considered building a check repository/library?gnupatehttps://www.blogger.com/profile/10492341480170667775noreply@blogger.comtag:blogger.com,1999:blog-24599054.post-5219783004682731342009-05-31T07:29:33.353-07:002009-05-31T07:29:33.353-07:00chorny,
I haven't been too involved in the Perl wo...chorny,<br />I haven't been too involved in the Perl world since about 2000. I'm always interested in learning about the Devel tools that exist there though. So may of them bring great insights that can be pulled into other languages. Thanks for the pointers.gnupatehttps://www.blogger.com/profile/10492341480170667775noreply@blogger.comtag:blogger.com,1999:blog-24599054.post-51694664861288351782009-05-31T03:53:49.799-07:002009-05-31T03:53:49.799-07:00matt harrison: Perl's Devel::Cover exists from 200...matt harrison: Perl's Devel::Cover exists from 2001 and is very popular. See for example these presentations (don't know anything about their quality): <A HREF="http://www.slideshare.net/kcowgill/testing-code-and-assuring-quality" REL="nofollow">Testing Code and Assuring Quality</A>, <A HREF="http://www.slideshare.net/Skud/test-driven-development-tutorial" REL="nofollow">Test Driven Development chornyhttps://www.blogger.com/profile/03938973252154624018noreply@blogger.comtag:blogger.com,1999:blog-24599054.post-34209815554669301992009-05-29T17:58:27.334-07:002009-05-29T17:58:27.334-07:00@pate: Excellent does not directly relate to Rails...@pate: Excellent does not directly relate to Rails at all. It just performs the Rails related checks if the Code looks like Rails Code (class derives from ActiveRecord::Base or file is named like a Rails partial). In general, Excellent checks any Ruby Code you might have. Check the documentation (especially that for SexpContext and Warnings::Base) and the source for help on how to build your own marcoowhttps://www.blogger.com/profile/03624427273485825091noreply@blogger.comtag:blogger.com,1999:blog-24599054.post-271315379580376952009-05-28T14:51:38.256-07:002009-05-28T14:51:38.256-07:00Marco,
excellent sounds really interesting. How m...Marco,<br />excellent sounds really interesting. How modular is it? Could it be used with non-rails frameworks too?gnupatehttps://www.blogger.com/profile/10492341480170667775noreply@blogger.comtag:blogger.com,1999:blog-24599054.post-26200554047363788882009-05-27T14:57:42.109-07:002009-05-27T14:57:42.109-07:00Interesting discussion. I played with code analysi...Interesting discussion. I played with code analysis for quite some time now (and for the most part with c# where static analysis is completely different of course since it's a static language) and build <A HREF="http://github.com/simplabs/excellent" REL="nofollow">excellent</A> in the last couple of weeks. It combines concepts and checks of roodi, reek and flog and also adds Rails specific checksmarcoowhttps://www.blogger.com/profile/03624427273485825091noreply@blogger.comtag:blogger.com,1999:blog-24599054.post-40705168486128850722009-05-27T13:50:34.333-07:002009-05-27T13:50:34.333-07:00Hi Matt,
Thanks for the comment, and the link.
I'...Hi Matt,<br />Thanks for the comment, and the link.<br /><br />I'd love to hear more about pyflakes and flymake-mode if you're interested in sharing.gnupatehttps://www.blogger.com/profile/10492341480170667775noreply@blogger.comtag:blogger.com,1999:blog-24599054.post-91366184466891584732009-05-27T11:08:39.330-07:002009-05-27T11:08:39.330-07:00Interesting comments. I think both refactoring an...Interesting comments. I think both refactoring and testing benefit from an understanding of code complexity, but no one mentioned it. It sort of ties everything together since it allows you to know when to refactor something as well as gives an indication of testing completeness. Sadly the coverage tools to provide branch/path coverage don't seem to exist in the dynamic language world. (I'm matt harrisonhttp://panela.blog-city.comnoreply@blogger.com