Difference between revisions of "SL Cert - Basic Scripting"
m (moved User:Louise Rumpler/SL Cert Basic Scripting to User:Louise Rumpler and Grandma Bates/SL Cert Basic Scripting)
m (moved User:Louise Rumpler and Grandma Bates/SL Cert Basic Scripting to SL Cert - Basic Scripting: Move out of user pages area.)
Revision as of 19:50, 18 November 2009
This list of requirements is part of the Second Life Certification project. It is an effort to create a list of specific skills required for persons to become certified in basic scripting.
Persons who wish to demonstrate competence in basic LSL scripting.
Some experience and familiarity of the second life graphical user interface and controls is necessary. Also some experience of building within second life would be an advantage. Six months secondlife experience recommended.
Criteria for testing to basic level
In the basic skill sets a person should demonstrate a mastery of common programming tasks. The following categories provide the basic categories.
Broad Overview and Most Basic Skills
- Rationale for scripting
- Script creation
- Commenting and Clarity
- Mono vs. LSL2
- Heap vs. Stack space
- Software Development
A person should provide a basic understanding of the potential and the limitations of scripts. The person should be able to demonstrate how to create a script both within an object rezzed in world or in their inventory. The person should know the difference between mono and LSL2 and the implications when a script is created within inventory as opposed to an object's inventory. A person should demonstrate a basic understanding of the construction of structured code and consistent commenting style. The person should demonstrate a basic understanding of the memory model used by mono and the difference between heap and stack space.
Finally, the person should provide a very basic understanding of practices for good software development. This includes the use and maintenance of comments and the rationale for the use of functions and subroutines. Additionally, the person should provide a rudimentary understanding of code revisioning and practices to keep and maintain local back up files.
- Global vs. Local Variables
A person should be able to identify the basic data types, integer, float, string, key, list, vector and rotation. The person should know the basic operations and what they mean in context. For example, division with integers is different compared to division with floats. The person should understand that some operations are overloaded and have different meanings when combined with different types. For example, if v1 and v2 are vectors then v1*v2 is the dot product, but if v1 is a vector and r is a rotation then v1*r will rotate the vector.
The person should demonstrate the concept of the "scope" of a variable. There is a difference if it is defined outside of an event or function. Also, the person should demonstrate an understanding that a global variable can be ignored if it is also defined locally.
Finally, the person should demonstrate how to "convert" one variable into another and what happens. For example, a float is trunctated when cast as an integer.
- Loop Constructs
A person should demonstrate an understanding of the different looping constructs using for, while, and do-whole loops and understand when one loop construct might be favored over another in a given context. The person should also demonstrate an understanding of the "if" statement and be able to use compound if statements.
Events and Functions
A person should demonstrate the basic idea of an event and how a script might react in various circumstances. For example, the person should have a basic understanding of the three touch events and how they differ. At the basic level the broad categories of events that should be mastered include collision, touch, land collision, state entry/exit, timer, and attach events.
The person should demonstrate an understanding of the use and creation of their own functions. This includes understanding the difference between null functions and functions that return a specific data type. The person should know the difference between a user defined function and the set of functions available within the build in library.
Finally, the person should demonstrate an understanding of the use of states. They should understand the default state, how to define new states, and move between different states. The person should have a firm understanding of the control flow as a script moves between different states.