Hello Shruti Magar !
by the code in :
- use the 'resource and paradigm' of the langage ( perhaps few ) you use. to make the code at best, a deep knowledge of the langage is required.
- use and provide 'comments' to make your code rich of details and explanations, to keep it 'readable by you, and other people'.
- use 'naming conventions' for all your vars.
------------------------------------------------------------------
by the software mainly :
- keep in mind the 'category' of your software ( which Needs are concerned, covered )
------------------------------------------------------------------