Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Runtime Generated, Typesafe, and Declarative - Pick Any Three

Gopher Academy via YouTube

Overview

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

Reviews

Start your review of Runtime Generated, Typesafe, and Declarative - Pick Any Three

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.