A code review story from The Daily WTF examining a developer's unnecessary reimplementation of Postgres array string formatting in JavaScript when using the Knex query builder. The code manually constructs Postgres array syntax and builds parameterized query arrays, despite Knex's `whereRaw` already handling this natively. The

3m read timeFrom thedailywtf.com
Post cover image

Sort: