There are some professional programmers often talking about good and bad practices of code writing. I would like to talk…