Hacker News new | ask | show | jobs
by ultimatedelman 4345 days ago
Misleading title? Loops can be really efficient and beneficial, just maybe not in this very specific circumstance. I clicked on the article thinking it was a new programming trick on how to avoid loops to do the same work loops do.

SPOILER ALERT: it's not.

1 comments

Yeah, that's along the lines of what I was hoping for too. Maybe something I could take to my boss to convince him to let us use functional languages like Clojure at work? Nope. Instead, I got hit with an offensive, sweeping generalization, backed up by nothing. The author didn't demonstrate that "developers don't understand databases" - he only demonstrated that he can write (intentionally) bad code.
Its also kind of weird seeing a DBA advise application developers to use bulk copy functionality as a general approach to avoid single-statement inserts -- generally, most DBAs I've met want application developers to stay as far away from bulk copy functionality as possible.