Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore runtime generated, typesafe, and declarative programming techniques in Go at this GopherCon 2017 talk. Discover how to reduce repetitive code by leveraging tags, reflection, and runtime function generation, allowing you to focus on algorithms rather than boilerplate. Learn about Proteus, a tool that implements a runtime generated, type-safe, and SQL-injection-proof DAO layer. Gain insights into JDBC, reflection for type and value discovery, integration with Go SQL libraries, code reuse strategies, and the use of struct tags for SQL templates. Understand how to create efficient, secure, and flexible database access objects in Go, enhancing your ability to write more maintainable and performant code.
Syllabus
Intro
JDBI: JAVA DAOS DONE BETTER
REQUIREMENTS
REFLECTION: FINDING YOUR TYPE
REFLECTION: FINDING YOUR VALUES
INTEGRATING WITH THE GO SQL LIBRARIES REUSE, DON'T REWRITE
RETURNING BACK VALUES EXECUTORS FIRST
FROM STRUCT TAGS TO SQL TEMPLATES
FROM SQL TEMPLATES TO QUERY USE ARGUMENTS TO FINALIZE THE QUERY WHEN INVOKED
PROTEUS FEATURES
Taught by
Gopher Academy