News for hackers. Stuff that matters.
Re:Bobby Tables by Areading314 on Sunday December 03, 2017 @02:01PM (#15838904)
Is this a joke? I've never met someone who had a hard time with safe query parameterization.

It's wrong to say sql can be replaced with "an api", it does not have the same flexibility, power, performance, etc. And would drastically slow down your development. Also, what is "the api" going to use? Text files?

It's better to teach people to practice safe SQL than to require abstinence.

Re:Bobby Tables by jgh on Sunday December 03, 2017 @02:29PM (#15839036)
I feel like this is a blog post from 2003 or something, and the audience is PHP developers who are writing inline SQL statements.
Re:Bobby Tables by labster on Sunday December 03, 2017 @02:28PM (#15839031)
I've never met a programmer who has a problem with learning parameterized SQL queries. But I've met plenty of old code that does, created before this sort of stuff was taught. In my experience, it's mostly the legacy code which has the greatest risks.
Re:Bobby Tables by lostmsu on Sunday December 03, 2017 @02:10PM (#15838937)
Last place I worked at had that problem (code injection) applied a lot to bash scripting.

The problem was solved for SQL after libraries that do parametrized query building gained popularity.

Re:Bobby Tables by red_admiral on Sunday December 03, 2017 @04:48PM (#15839798)
> Also, what is "the api" going to use? Text files?

A NoSQL datastore, of course :)