`
bibiye
  • 浏览: 169218 次
社区版块
存档分类
最新评论

How to write high quality code

阅读更多

编码前

  1. 真得理解了需求,设计。在把握需求设计得前提下动手,动手前编码前多思考”三分钟“

编码中

  1. 在有issue得地方,加上//TODO,以便清楚自己在过程中哪些地方不够确定
  2. 在有逻辑判断得地方加上注释,理好自己得思路(后期得修改容易理解程序逻辑)

编码后

  1. 自己动手测试前,再review自己得代码“三分钟’,以确定逻辑正确
  2. backend部分得code,来写一定得testcase,以便能够提早发现问题,不要等到同UI整合得时候再来发现问题。
  3. 对于其中有不同得执行路径得程序,要测试到所有得路径。不要抱‘那个路径不大会执行到‘得想法!
  4. 使用代码质量检查工具,例如findbugs.


网上收集相关:用正确方法来写出高质量软件的75条体会
                            
                            用findBugs来提高代码质量

分享到:
评论

相关推荐

    Programming - Write Great Code, Volume 2 Thinking Low Level Writing High Level

    ●How to write your HLL code to help the compiler produce better machine code ●How to take advantage of a compiler’s optimization facilities ●How to “think” in assembly language (low-level terms)...

    How.to.Use.Objects.Code.and.Concepts.0321995546

    Using practical examples based on Eclipse, he also shows how tools can help you work more efficiently, save you time, and sometimes even write high-quality code for you. Gast writes for developers ...

    Mastering High Performance with Kotlin pdf

    Find out how to write Kotlin code without overhead and how to use different profiling tools and bytecode viewer to inspect expressions of Kotlin language. Key Features Learn memory optimization, ...

    SQL Practice Problems

    It's easy to find basic SQL syntax and keyword information online. What's hard to find is challenging, well... It contains challenging problems, which develop your ability to write high quality SQL code.

    Clean Python.pdf

    there aren’t many resources that teach how to write better Python code. Currently lacking in the Python world are code consistency, patterns, and an understanding of good Pythonic code among ...

    Learning PHP 7 High Performance(PACKT,2016)

    Write quality code by learning to improve code reusability, simplicity, and expressiveness Get rid of the bottlenecks in your PHP 7 applications by writing PHP code optimally Tackle issues related to ...

    Learning.PHP.7.High.Performance.1785882260

    Write quality code by learning to improve code reusability, simplicity, and expressiveness Get rid of the bottlenecks in your PHP 7 applications by writing PHP code optimally Tackle issues related to ...

    MH,.Microsoft.XNA.Game.Studio.Creators.Guide.(2007)

    up your environment to write your XNA and shader code. It also explains how to create 3D models on a budget and how to use commercial standard models that are created by professional game artists. ...

    Object Oriented Programming with Swift 2(PACKT,2016)

    Object-Oriented Programming (OOP) is a programming paradigm based on the concept of objects; these are data structures that ...Write high quality object-oriented code to build apps for iOS or Mac OS X

    Software Development, Design and Coding-2nd Edition-Apress(2017).pdf

    Finally, this book is about professional practice, the ethics and the responsibilities of being a software developer, social issues, privacy, how to write secure and robust code, and the like....

    Object Oriented Programming with Swift 2

    Write high quality object-oriented code to build apps for iOS or Mac OS X In Detail Object-Oriented Programming (OOP) is a programming paradigm based on the concept of objects; these are data ...

    Learn.Mobile.Game.Development.in.One.Day.Using.Gamesalad

    One of the highlights of Gamesalad is that you DO NOT need to learn how to write traditional computer programming code to make your games. Gamesalad offers a simple, yet full-featured, drag and drop ...

    英文原版-Functional PHP 1st Edition

    What you will learn Declare functions/callables and find out how to manipulate and call them Write pure functions to get more robust code that can be easily tested Learn to compose function using ...

    Python Testing Cookbook.pdf

    By learning how and when to write tests at every level, you can vastly improve the quality of your code and your personal skill set. Packed with lots of test examples, this will become your go-to ...

    Android NDK Game Development Cookbook 无水印pdf 0分

    You will learn how to write portable multithreaded C++ code, use HTTP networking, play audio files, use OpenGL ES, to render high-quality text, and how to recognize user gestures on multi-touch ...

    Mastering iOS 11 Programming, 2nd Edition-Packt Publishing(2017).pdf

    When Apple launched Swift in 2014, the iOS ecosystem became more accessible than it had ever been... We'll step beyond the basics and learn everything you need to know to build high-quality applications.

    Mastering iOS 11 Programming, 2nd Edition-Packt Publishing(2017).pdf )

    When Apple launched Swift in 2014, the iOS ecosystem became more accessible than it had ever been for developers....and learn everything you need to know to build high-quality applications.

    Swift 3 Object Oriented Programming, 2nd Edition [PDF]

    Write high-quality and easy-to-maintain reusable object-oriented code to build applications for iOS, macOS, and Linux Work with encapsulation, abstraction, and polymorphism using Swift 3.0 Work with ...

    Geospatial.Development.By.Example.with.Python

    Create press-quality styled maps and data visualization with high-level and reusable code Process massive datasets efficiently using parallel processing Book Description From Python programming good ...

    Mastering iOS 10 Programming [2017]

    you won't just learn how to program for iOS 10-you'll also learn how to write beautiful, readable, and maintainable Swift code that's in line with the industry's best-practices. The progression of ...

Global site tag (gtag.js) - Google Analytics