3 ms·
Given the complexity involved in grading code quality I'm not convinced you should be using quantitative measures. Writing good code is often about making good
by kypro 4y ago
Given the complexity involved in grading code quality I'm not convinced you should be using quantitative measures.
Writing good code is often about making good trade-offs depending on the requirements. For example, using a 3rd party library might be quicker and make your code more concise, but there are security, extensibility and maintenance concerns that typically need to be balanced when doing so. And how you balance those will largely depend on your requirements. For example for security-critical code you might not want to use 3rd party libraries at all.
There are also times when I've written awful code on purpose. If I give a developer a task in which the code they're writing will be thrown away then I'd probably want them to prioritise writing that code quickly rather than worrying too much about how clean and maintainable the code is.
I think what you're asking is kind of like asking, "how do I grade writing quality"? Well what kind of text are grading? Is it a kids book? A shopping list? A textbook?
Just a thought anyway, I think I might be overcomplicating things to be honest.