Five rules of thumb for a backend developer, so that your peer can live a happy life.
- The name populate_data() doesn’t help much. The first question comes up to mind – What kind of data? So if there is name for your data, use that, instead of just data.
- Instead of warning fixed or bug fix, please write at least an oneliner of what warning you fixed.
- And then, instead of just fixed the warning, include the actual full error/warning message from stacktrace at the end of commit message.
- The names process() / execute() / handle() is ok in case of library/framework methods. But for general purpose, please specify what you are processing/executing/handling. For example process_million_dolar_payment() / execute_superman_command() / handle_http_request() …etc. At least try to use longer if you can. It helps with fewer grep results.
- Don’t have any on top of my head now :p
Leave a Reply