Well, I didn’t get any emails asking for directions, so I’m guessing nobody is coming. I’ll just cancel and hope you read the chapter 🙂
Databases *will* be covered on the final, so practice up!
Best,
-Auri
Well, I didn’t get any emails asking for directions, so I’m guessing nobody is coming. I’ll just cancel and hope you read the chapter 🙂
Databases *will* be covered on the final, so practice up!
Best,
-Auri
Email me for directions… sorry, AII didn’t have any rooms available…
Best,
-Auri
1. Read up on databases.
2. Finish skinning your shopping cart.
Last day of class is next week – we’ll have an Experience (a.k.a. "Final").
Please call or email me with any questions.
Best,
-Auri
Assignment 1: Take the working Shopping Cart script and skin it with a complete user interface. Make it purty. See how the PHP code interacts with your design. IM, email, or call me with questions!
Assignment 2: Read the Shopping Cart example chapters in the book. You don’t have to worry about getting the cart in the book working – just review it to see how they are adding and removing items.
Assignment 3: Re-read Chapter 3 on Arrays and read Chapter 10 on Sessions.
I’ve uploaded the code to the Scripting Class files area on my space.
Good luck and see you Friday!
I’ve uploaded the notes from class to the files section on my blog:
Your assignment, due September 5:
Create a Shopping Cart
Business Rules:
Concepts Used:
Please email or call me with any questions!
Have a great Labor Day weekend!
Best,
-Auri
We discussed XAMPP Lite, which is another good PHP + Apache + MySQL server for Windows.
To download XAMPP Lite, go to http://www.apachefriends.org/download.php?xampplite-win32-1.6.7.exe
For info on how to install and use XAMPP Lite, go to: http://www.apachefriends.org/en/xampp-windows.html
Build the following applications yourself and show me they work on Friday:
Skim back through Chapter 2, and see how what we did on Friday’s class relates to what’s in that chapter.
Read Chapter 3, and do all of the coding examples.
If you don’t already have MAMP or WAMP on your home computers, I suggest one be installed so you can quickly work on your projects without relying on somebody else’s server. It’ll also give you much more flexibility in working with your own projects outside of this class.
I encourage you to play around with all examples. Change variables, make the code do more than the example intended. See how changes you make affect the outcome. It’s good if you have bugs in your code in this class, because you’ll learn how to fix them! This is called debugging. Of course, when you do real world projects. you don’t want bugs 🙂
Now, do you know why they’re called bugs? It’s because back in the old days of vacuum-tube based computers, bugs would crawl into the system and cause the tubes to blow. So, the maintainers of those huge computer systems had to literally de-bug their machines!
Please let me know if you have any questions!
Best,
-Auri
Ok, we’ve built the Dan Akroyd Guessing Game, so now what?
Well, things to take away from the class:
You learned about validation. While we touched on it briefly, validation is one of the most important concepts to master. Since interactive Web sites live and die by how they respond to user input, you need to make sure the user has actually entered information you can work with. On an industry note, secure coding practices dictate that you always validate the data received. We will be going over secure coding practices and validation in our next class.
You also learned about business process. Remember what programming in the real world is all about:
So, if you document the process first, the program is much easier to write! You already know the steps you have to digitize. This is a very large part of writing a specification. If you don’t have a specification, and you don’t have a documented business process, your project will almost always ship late or never ship at all.
One last thing: You learned about some of the built in helper functions in PHP:
You will end up memorizing many helper functions. They will make writing code much easier and much, much faster. Because many common tasks are taken care of by well-tested helper functions, you don’t have to write them yourself, which will make the code more reliable.
I hope you enjoyed the class! Please let me know if you have any questions!
Best,
-Auri