Re:How to Ace the Google Interview: Ultimate Guide
by CaptainZapp on Wednesday April 24, 2019 @02:30AM
(#19736055)
Better designs require fewer lines of code
I think that's extremely dependent on context.
I write mostly SQL and bash and would argue that both languages are not conductive to try to reduce size at the cost of future maintenance.
Re:How to Ace the Google Interview: Ultimate Guide
by z3t4 on Wednesday April 24, 2019 @03:37AM
(#19736332)
There are simply no metric which can automatically measure code/design quality. Here's how I feel about code/design quality:
1) How many files I need to open to understand what the code does (less is better)
2) How many times I have to jump to follow the execution path (less is better)
3) How easy can I remove or rewrite this piece of code
[#] If this doesn't seem obvious consider the inverse - worse designs will inevitably require more lines of code to get the same result.