CSC151, Class 14: More CGI Overview: * Why write CGI scripts? * Q&A * Discussion of HW 2 * Lab (old and optional new) * Reflection Notes: * HW 2 is ready (discussion in the middle of class). * No reading for tomorrow. ---------------------------------------- "Sam, why are you teaching us to write CGI scripts in Scheme?" * Create interactive Web pages. + It's fun to create interactive Web pages (mad libs). * It's part of the social realm of computer science. * Most of the programs you interact with, you interact with through the web. * Ties together different things we're learning. * Inferiority complex: See, Scheme can do everything all the other languages do. HW2: Write a simple Mad Libs game * Start with a normal paragraph with certain words taken out. * Indicate the part of speech and fill in a word (without knowing the context). * The result is often funny. Guidelines: * At least five things to fill in. * More than one kind of input. * Work with someone new. +-----------------------+ | | <----- Type here +-----------------------+ O Green O Blue O Black O Yellow <----- Check one ---------------------------------------- REFLECTION: * Computers are sentient and malicious. They purposefully try to make this lab much slower than it should be. * When you ask for a color and a name, you should ask for BOTH