Duzzuti/passwd-manager

[NTH] Ensure code quality

Aperta

#18 aperta il 1 giu 2023

 (1 commento) (0 reazioni) (0 assegnatari)C++ (4 fork)auto 404
enhancementgood first issue

Metriche repository

Star
 (9 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

We should ensure that functions should have two properties:

  1. The name is relevant for what they do
  2. The function does one single thing.

Specially if we notice that property number 2 isn't fulfilled we should split the function into as many different things is doing. Following this idea makes the code much easier to read and debug.

  • Difficulty (1-10): 2

Guida contributor