Saturday, 1 June 2019

Java best practices

  • Use as many tools as possible to improve code quality.
  • Use string buffer instead of string concatenation when concatenating.
  • Use comments in your code not documentation.
  • Often check-in your code.
  • Break complex programs in easy to understand blocks
  • Use naming conventions and give relevant names to blocks, methods and variables.
  • Always format your code inorder for others to easily read it.
  • Use prepared statement in udpate
  • Write thread safe code
  • Use java security best practices
  • Use logger instead of printstacktrace in your producition code..

No comments:

Post a Comment