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

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

hadibuxmahessar
hadibuxmahessar

No responses yet