Skip to content

Comment on Show HN: Caffeine – Minimum viable back end for prototypingparent

Comments

aw4yOP

the reason I went "quick'n dirty" is for the prototyping nature of the project. But I'll fix this anyway, thanks!

Using the db Exec / Query / Query row is the same amount of code and effort the fmt.Sprintf statements. Even in quick-and-dirty mock-ups, it's a good idea to not cut corners there.

There's nothing as permanent as a temporary solution. There's been countless SQL injection vulnerabilities exploited over the past decades with the "I'll fix it later" mindset.

Start with prepared statements by default, they are not more work than formatting strings.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.