Coding Best Practices

--

1. Create functions with names showing full concept of what function is created for

2. Put doc string for each function

3. Comment where value is hard-coded

4. Re-usability should be ensured where possible(If feasible Classes and Inheritance else functions)

5. Make one consistent logic for functions e.g. a function would either return data or Boolean False

6. Create separate files for static assets

7. Try to implement everything from framework used e.g custom css should be avoided if bootstrap framework is used

8.Create separate files for functions doing same thing

9. Store credentials in text files(encrypted form)

10. Class names should start with Capital letter

--

--

hadibuxmahessar
hadibuxmahessar

No responses yet