Software Engineer Tips

Clean Code
  • Name Variables and other things properly
    • Create meaningful name
      • Bad : String cd;
      • Good : String currentDate;
    • Long Variable Names
      • Bad : Person[] peopleFromIndiaWhoCanSpeakFrench;
      • Good : Person[] indiansSpeakingFrench;
    • Bad Notations
      • Bad : int iSize; String sName;
      • Good : int size, String name;
    • Avoid Disinformation
      • Bad : String[] accountList;
      • Good : String[] accounts;
    • Avoid Noise Words (Data, Info, etc)
      • Bad : UserInfo / BookData
      • Good : User / Book
    • Use Pronounceable Names
      • Bad : String yyyymmdstr;
      • Good : String currentDate;
    • Use Searchable Names
      • Bad : if (student.classes.length < 7)
      • Good : if (student.classes.length < MAX_CLASSES_PER_STUDENT)
  • Write Functions Properly
The Pragmatic Programmer
https://drive.google.com/file/d/11dEXWs9l6TkbKCmkiJ7L4BHM0pVpyk08/view?usp=share_link




  • Use Code Analyzer to verify quality of your code, make sure everything is good / green.
  • Don't live with broken window.
  • Make sure your code is dry, evaluate refactor duplication.