I''m in the process of porting an ASP.NET project over to RoR and I''d like to create some basic metrics with which to demonstrate to managers how RoR is easier to maintain than an equivalent ASP.NET app. So, I was thinking of counting lines of code (separated by models, views, controllers) and outputting to a text file. Has anyone already done this, and if so, would you be willing to share your script? Are there any other metrics you''ve used when pitching your prototypes to managers? I''m thinking of more than simply tracking time spent developing. Performance benchmarks aren''t as helpful to me because my prototype is running on Webrick. Thanks in advance! -Chris -- Posted via http://www.ruby-forum.com/.
rake stats type that in at the command line in the root directory of your applications. Josh On 3/9/06, Chris Jennings <cpher@spatialbytes.com> wrote:> I''m in the process of porting an ASP.NET project over to RoR and I''d > like to create some basic metrics with which to demonstrate to managers > how RoR is easier to maintain than an equivalent ASP.NET app. > > So, I was thinking of counting lines of code (separated by models, > views, controllers) and outputting to a text file. Has anyone already > done this, and if so, would you be willing to share your script? > > Are there any other metrics you''ve used when pitching your prototypes to > managers? I''m thinking of more than simply tracking time spent > developing. Performance benchmarks aren''t as helpful to me because my > prototype is running on Webrick. > > Thanks in advance! > -Chris > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
> So, I was thinking of counting lines of code (separated by models, > views, controllers)Sorry if this is obvious for you, but have you tried ''rake stats''? -- Posted via http://www.ruby-forum.com/.
Chris Jennings
2006-Mar-09 23:05 UTC
[Rails] Re: Script to count lines of code in Rails app?
szymek wrote:>> So, I was thinking of counting lines of code (separated by models, >> views, controllers) > > Sorry if this is obvious for you, but have you tried ''rake stats''?Well, now I feel like a dork. That''s exactly what I was looking for. My experience with rake is limited to uploading fixtures, so I had no idea to even look there. Thanks! I heart rails. -- Posted via http://www.ruby-forum.com/.