From the course: Dart Clean Code: Writing High-Efficiency, Maintainable Dart Programs

Unlock the full course today

Join today to access over 24,600 courses taught by industry experts.

Effective design

Effective design

- [Narrator] A new company has just released its first app iteration and hundreds of early users have already left negative feedback. So, the co-founders hired you to clean up the entire code base and fix broken features. To begin, how can you improve the classes and functions to make the code base more readable and consistent as a whole? Okay, let's take a look at two important best practices to remember when naming functions. The first is the use of abbreviations. Avoid abbreviated names as much as possible because they make your entire code difficult to read and comprehend. Share other names of three important functions found in the client's code base. These names do not specify what the functions are intended to do. Let us now create a more effective naming scheme for these functions. The current function will be renamed to employeeCount. Okay, let's change the next function to createEmployeeProfile. The…

Contents