You know your assignment is due on Saturday.
There is no quiz this week.
Someone asked about the background of Python. While almost everything you would ever care to know about Python can be found at the Python Software Foundation website, perhaps the nicest thing you can read is this little page about Guido van Rossum, who created Python for the good of all. There are many affectionate Python sites, like this and this.
After you finish Assignment 2, get started with Python. Links are on the Course Schedule under Week 5. You should get started on Sunday. Do not try to do it all on Tuesday morning!
Your main task is to type all the things in Zed’s lessons 1 through 12. As Zed says:
If you copy and paste, you might as well not even do them. The point of these exercises is to train your hands, your brain, and your mind in how to read, write, and see code. If you copy-paste, you are cheating yourself out of the effectiveness of the lessons.
We will be using Python for the rest of the semester!
The command-line cheatsheet I made for you should address any questions you might have outside the lessons. That is also linked under Week 5.
Things I showed in class Jan. 26:
- Transactions for MySQL in PHP (partial code)
- PHP hash for password encryption (partial code)
- Modifying databases with SQL (slides)
- SQL basics (slides, shown in Week 2)
- More advanced SQL queries (slides, never shown in class — includes a review of Booleans)
hash() question: I had to test this. Here is code (no database needed, but it’s PHP so you will need to put it in htdocs in XAMPP to try it). This proves that what Andrew suggested will work. The ripemd128 encryption always produces the same result from a given string, so you don’t need to reverse-encrypt the password.