|
|
|
|
|
by Klathmon
3319 days ago
|
|
I think the disconnect here is that a prepared statement isn't really more complicated. As pseudocode it's more like dbquery('select * from friends where user_id = $1', userId)
A few extra characters is all it takes.And the benefits of prepared or parameterized statements don't end at security, they can often have performance benefits as well. And as for the login pseudocode, if it doesn't have anything to do with the example, hide the implementation: if (userIsAuthenticated === true) { login() }
|
|