Skip to content

Question: How can I make use of the stats? #175

Answered by stefanzweifel
gopalkriagg asked this question in Q&A
Discussion options

You must be logged in to vote

That's acutally a very good question.

I think the output stats provides should not be taken too seriously. Meaning it shouldn't dictate how you write your code.

laravel-stats is basically a port of rake stats from Ruby On Rails. I've got inspired by this tweet as I thought it would be great to see, how many lines of code I've written for each component.
So it's basically just a dashboard which tells you, how many Controller classes you have and how the ratio between methods per class and lines of code per class.

Saying that a project has "good code" based on the average number of methods per class is probably not the best approach.

For me personally, good codes is:

  • easy to read and under…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by stefanzweifel
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #175 on December 22, 2020 08:48.