zoukankan      html  css  js  c++  java
  • [Mise] Questions to Ask Yourself When Conducting a Code Review

    Is the code clean and modular?

    • Can I understand the code easily?
    • Does it use meaningful names and whitespace?
    • Is there duplicated code?
    • Can you provide another layer of abstraction?
    • Is each function and module necessary?
    • Is each function or module too long?

    Is the code efficient?

    • Are there loops or other steps we can vectorize?
    • Can we use better data structures to optimize any steps?
    • Can we shorten the number of calculations needed for any steps?
    • Can we use generators or multiprocessing to optimize any steps?

    Is documentation effective?

    • Are in-line comments concise and meaningful?
    • Is there complex code that's missing documentation?
    • Do function use effective docstrings?
    • Is the necessary project documentation provided?

    Is the code well tested?

    • Does the code high test coverage?
    • Do tests check for interesting cases?
    • Are the tests readable?
    • Can the tests be made more efficient?

    Is the logging effective?

    • Are log messages clear, concise, and professional?
    • Do they include all relevant and useful information?
    • Do they use the appropriate logging level?
  • 相关阅读:
    tiny4412 硬件解码
    orb slam2 双目摄像头
    hi3516a arm-hisiv300-linux-gcc jrtplib交叉编译
    第12章_异常
    第10章_内部类:
    IO流深入总结
    实现对存放了Map集合的ArrayList的排序(按照map中某个字段比较)
    UML各图用处

    File类:
  • 原文地址:https://www.cnblogs.com/Answer1215/p/12953765.html
Copyright © 2011-2022 走看看