开发者

Understandability vs Performance [closed]

开发者 https://www.devze.com 2023-03-20 15:55 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

Improve this question

I was having a discussion at work today about code around weather it is more important for people(especially junior开发者_如何学JAVAs) to understand or to have high performance code.

I am all for having less efficient as long as it is easy for anyone to understand, as it code is always handed off to junior developers to support.


I would say you should try to keep it as understandable as possible. When you hit performance issues that must be dealt with and the resolution that helps you achieve your performance goals is not as understandable, you must document it very well before handing it off to the junior devs.


You should find the golden mean, considering who works the code, and what is the final goal of your program.

As for our company, we don't care about 'understandability' and pursue the high performance. This is easy for us, because we don't have junior developers :)

0

精彩评论

暂无评论...
验证码 换一张
取 消