Hacker News new | ask | show | jobs
by Izkata 637 days ago
For their one here it's just the ability to rapidly comment/uncomment conditions in a query editor while exploring the data or debugging the query, and not having to worry about the leading AND or OR.

I've also seen it in code with iterative adds, for example:

  for crit in criteria:
      sql += " AND " + crit
No needed to add a sentinel or other logic to skip the first AND. I saw it a lot before people got used to " AND ".join(criteria).
2 comments

That's right - it's just a quicker way of being able to comment/uncomment conditions when doing EDA or debugging.
Yeah. Especially when I'm trying to see what makes some query slow.