DEV Community

Discussion on: How to Write a Good Piece of Code

Collapse
 
revskill10 profile image
Truong Hoang Dung
  • Make sure your algorithm is clear, clean, simple to understand.

  • Make sure your code style/patterns is clear, clean, simple to understand.

  • Make sure your API is clean, simple, easy to understand.

Always separate API and implementation, so that you can change the implementation without affecting call sites.