Patterns

Design Patterns

https://refactoring.guru/design-patterns/ (opens in a new tab)

Dependency Injection

https://javaee.github.io/tutorial/injection002.html (opens in a new tab)

For none DI like below, the downside is that:

import axios from 'axios'
 
export default {
  async index() {
    const result = await axios.get('...')
    return result.data
  }
}

Repository vs DAO

https://www.baeldung.com/java-dao-vs-repository (opens in a new tab)