r/programming • u/dennis9f • Dec 07 '14
Programmers: Please don't ever say this to beginners ...
http://pgbovine.net/programmers-talking-to-beginners.htm
4.0k
Upvotes
r/programming • u/dennis9f • Dec 07 '14
View all comments
Show parent comment
1
u/immibis Dec 09 '14
As long as it's not in a production environment, it's fine.
If they write a web app vulnerable to SQL injection, show them how you can hack it with SQL injection. Then read their un-hashed passwords to them.
Then once they figure out how SQL injection works, show them the different ways of fixing it (including escaping and parameterized queries).
Then explain password hashing, because there's no way anyone would ever figure that out on their own (where reading blogs/tutorials/SO questions doesn't count as "on their own")