Press "Enter" to skip to content

Posts published in “Clean code”

How to write good clean code? 我们应该怎样写代码?

  • Good Naming of variables – Easy to read for other programmers
  • Have enough documentation – Good for you or other when revisit this code
  • Doesn’t has duplicate code – Think about writing a function/method for it
  • Less code less maintenance – Less bugs, more reliable
  • Code can pass all test cases
  • Facing outdate code/project communicate with Team members first
  • Refactoring the code when adding a new feature, fixing a bug, or during a code review