to authenticate • Their username and password must be checked against the database table of known users • If the username is found and the password matches then they must be authenticated • If the username is not found then the user must not be authenticated • If the user is found but the password does not match then the user must not be authenticated 4
if necessary Work from the outside towards the happy path Do one thing at once Fake things Call code before writing it Test all the time Practice your practices! 76
can do in the browser • https://www.hackerrank.com/ • http://www.codewars.com/ Generic problems you can try to solve in any language • http://codingdojo.org/kata/ • Book: 57 Challenges to Develop Your Coding Skills https://pragprog.com/book/bhwb/exercises-for-programmers 77