CSC151 Class 34: Script-Fu, the Gimp's Scheme-Like Programming Language Overview: * Quick intro to Script-Fu * Lab * Reflection Notes: * Happy April Fools' Day * Are there questions on exam 2? * No reading tonight (but think about Script-Fu) ---------------------------------------- A: What happens if I write a solution that works for most cases, but not all cases? Q: It depends on what mood I'm in and the overall structure of your answer. Q: Why don't you show me your answer in advance! ---------------------------------------- Theory: Every large program needs its own programming language. * Help with "annoying repetitive tasks" * Easier for things that need precise computation The Gimp's first programming language was (and is) "Script-Fu" Mostly based on SIOD, a variant of Scheme A lot like DrScheme except ... Unfriendlier errors Fewer built-in operations Lots and lots of graphics operations Lab: Learn simple aspects; Think about reflection questions ---------------------------------------- Reflection Questions: * What was your favorite part of today's lab? * What was your least favorite part of today's lab? * What advantages, if any, are there from being able to write Script-Fu commands for the Gimp? + You can be very precise + Dynamically generate images (e.g., for Web services) + Easy to mess with pictures * What else would you like to learn about Script-Fu?