A2SV Python Track - Best Coding Practices
A2SV Python Track - Best Coding Practices
Practices
Lecture Flow
● Why Best Practices?
● Meaningful Naming
● Writing Modular Code
● Consistent Indentation
● Essential Comments
● The Good the Bad and the Ugly
● For Interviews
Why Best Practices?
Why Best Practices?
● Do things faster
● Reduce bugs
● Concise code
● Readability
Meaningful Naming
Meaningful Naming
Bad Practice Good Practice
Meaningful Naming
Bad Good
Writing Modular Code
● Helps transiting from solution to code
● Helps seeing the commonalities between similar problems
● Interviewers seriously care
● Reduces bugs
● Helps debugging
● Reusable
Consistent Indentation
Consistent Indentation