all AI news
SQL generation: Golang's builder pattern vs Clojure's persistent map
June 8, 2024, 10:34 a.m. | Vee Satayamas
DEV Community dev.to
I worked on a TODO code assignment for showing off my skills, and more importantly, showing my weak points. I coded in Golang and Masterminds/squirrel. Later, I ported only the SQL generation part to Clojure to compare and discuss why I prefer Clojure, which I have usually been asked about or even met with opposition for. I will discuss function by function and type by type. The first function is makeStatement.
func (repo *TodoRepoPg) makeStatement(orders []entity.Order, filters []entity.Filter) (string, …
assignment builder clojure code discuss golang later map orm part pattern skills sql sql generation squirrel
More from dev.to / DEV Community
Jobs in AI, ML, Big Data
AI Focused Biochemistry Postdoctoral Fellow
@ Lawrence Berkeley National Lab | Berkeley, CA
Senior Data Engineer
@ Displate | Warsaw
Solutions Architect
@ PwC | Bucharest - 1A Poligrafiei Boulevard
Research Fellow (Social and Cognition Factors, CLIC)
@ Nanyang Technological University | NTU Main Campus, Singapore
Research Aide - Research Aide I - Department of Psychology
@ Cornell University | Ithaca (Main Campus)
Technical Architect - SMB/Desk
@ Salesforce | Ireland - Dublin