Boston CartwrightBoston Cartwright

Talk

Beyond database/sql: The Driver Pattern

Learn how you can improve your work with dependencies by using the Driver Pattern! This extremely powerful design pattern allows you to encapsulate functionality shared between dependencies and elevates the classic interface and implementation pattern to the next level.

GoWestConf 2022

Beyond database/sql: The Driver Pattern

This talk explores how the Driver Pattern can revolutionize your approach to dependency management in Go applications.

Key Topics Covered

  • Driver Pattern Fundamentals: Understanding the core concepts and benefits
  • Beyond Standard Interfaces: Taking interface patterns to the next level
  • Shared Functionality: Encapsulating common behavior across dependencies
  • Real-world Applications: Practical examples and use cases
  • Go's database/sql Package: How the standard library implements this pattern

Audience Takeaways

Attendees learned:

  • How to identify opportunities for the Driver Pattern
  • Techniques for encapsulating shared functionality
  • Best practices for dependency management in Go
  • How to elevate traditional interface implementations

Presented at GoWestConf 2022, sharing insights about advanced Go patterns with the North American Go community.