Difference between revisions of "User:PixelProphet Lane"

From Second Life Wiki
Jump to navigation Jump to search
Line 13: Line 13:
}}
}}


{{box|Techniques and formatting|
As you will notice, each programmer has his/her own style of producing code.
I personally like to use CAPS for global variables because they stand out from the rest, and lower case for local variables.


Usually I use CamelCase for function declarations.
I also like to cache values in variables (where possible) instead of repeatedly calling the corresponding functions.
}}


{{box|Scripts|
{{box|Scripts|

Revision as of 11:07, 3 April 2010

About PixelProphet

I joined Second Life on Febuary 5th, 2007 and was playing around with scripts on my 2nd day in world. After a few days I wondered how I'm supposed to run a script I've made. I searched my inventory for some hidden menu option like "Run this script", but fortunately one of the many Residents I asked was kind enough to inform me that scripts run in Prims.

Aaahhh...

Ok, what's a Prim then ? Searched the forums..."how to create prims"..you'd think it was that easy....It wasn't lol. By the way, I found out about Help Islands and all that about half a year after I created my account, because I landed right in Korea 3 on my first day, a place I can totally not recommend for newbies who need answers to questions.

I'll tell you more later.


Techniques and formatting

As you will notice, each programmer has his/her own style of producing code. I personally like to use CAPS for global variables because they stand out from the rest, and lower case for local variables.

Usually I use CamelCase for function declarations.

I also like to cache values in variables (where possible) instead of repeatedly calling the corresponding functions.


Scripts

Fast List Prim Contents - Print Object Inventory (Name, Type and next Owner perms)

Real Object Inventory To Dialog - Display any amount of items contained in an Object in a Dialog, regardless of item name legth..