Naming Conventions and Vuex Modules Separation

Learn how to enforce the same naming convention throughout the project.

Naming variables can be one of the most challenging tasks for a programmer. What’s more, the more developers are on the team, the more naming conventions can be present in the code. Therefore, it’s a good idea to decide upfront what kind of conventions should be followed.

First of all, make sure our module names are self-explanatory. Imagine we open the modules directory and see folders such as list, compare, and status. We’d have no idea what they’re about without going through the code. What about names such as user, card, products, or appConfig?

Get hands-on with 1400+ tech skills courses.