mercredi 21 novembre 2018

Discussion about coding standards

My lecturer told me following points about coding standards and logic building in Design Pattern and Restructuring :

1) Never use continue or break

2) No Loops (if work can be done be recursion)

3) Only 1 return statement inside function (i.e no 2-3 returns inside if else even)

4) No printing inside function

5) change continue with !=

6) change break with != and some coding logic(boolean true and false)

7) No goto statements

Are the following points valid? or he just want to make his own coding standard? please tell me . Also if any student use these.. his marks will be deducted in assignments.

Aucun commentaire:

Enregistrer un commentaire