Blockland Forums > Modification Help
Thinking about maybe teaching another scripting class
Demian:
--- Quote from: Mr. Wallet on July 02, 2011, 06:15:21 PM ---I'll probably start on the 8th so that the class goes across 2 weekends and only one set of weekdays.
--- End quote ---
Nice. I can't participate this year either. I guess I'm just not supposed to script.
Orthone:
It would be cool if you documented the entire class so people could use it after you've stopped teaching, or if they missed a few days.
Demian:
--- Quote from: Orthone on July 03, 2011, 06:01:51 AM ---It would be cool if you documented the entire class so people could use it after you've stopped teaching, or if they missed a few days.
--- End quote ---
Yes. Chat logs could be nice too.
Xalos:
--- Quote from: Mr. Wallet on July 02, 2011, 06:15:21 PM ---* I'm having trouble coming up with homework that highlights the use of return values. On the one hand, they're not very useful until your projects get large and confusing. On the other hand, they're used so much by the other vanilla functions we're going to be using that I need to introduce them early. If anyone has any suggestions for a one-evening project for students to do with return values - one that won't make them go "why don't I just do it in the original function?" - I'd love to hear them.
--- End quote ---
Here's an example:
function mMax(%a, %b)
{
if(%a > %b)
return %a;
return %a;
}
function mMin(%a, %b)
{
if(%a < %b)
return %a;
return %b;
}
I tend to use these functions a lot. If I replaced every call to one or the other with code, it would make even small functions become huge and unmanageable.
Also, where are these classes going to take place? I already know most of the stuff on that schedule but I see some stuff I don't know.
Daenth:
Oh yes, I want to participate. :D
Also, if the classes are going to be like last year, someone should record them. ;)