Jump to content

LSL best practice/guidelines?


Skyler Nexen
 Share

You are about to reply to a thread that has been inactive for 3092 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

So I know LSL isn't exactly the most advanced language and most things have been found out by people experimenting, but was wondering if there is some sort of compiled "best practices" guide, or guidelines or something of the sort.

About what the best way is to make a new list, to clear a list, and so on and so forth. (Mostly wondered since that would be greatly helpful and seeing those new C++ Core Guidelines reminded me of wanting that for LSL)

Link to comment
Share on other sites

There are quite a few pages in the LSL wiki that do that now.  For example, if you want guidance on how to handle list functions, the place to turn is http://wiki.secondlife.com/wiki/Category:LSL_List  .  It's all user-generated, so it's based on experience and it evolves as LSL has evolved.  There isn't a page-by-page summary of all of those bits of wisdom, but they are all accessible from the LSL Language Reference and Category lists at http://wiki.secondlife.com/wiki/LSL_Portal

Link to comment
Share on other sites

Yeah I know, its just spread all over the place, some stuff even on the personal pages of users.. and then some might be outdated etc. So I'm wondering if there was ever any compiled guide of up-to-date info xD

Regarding general coding practices too I suppose

Link to comment
Share on other sites

Nope.  That's about it.  There have been a few books written over the years.  You can find them with a Google search, but they go out of date much faster than anything in a wiki.  I have found that I can get maybe 75% of the collective wisdom I need from that opening page in the LSL Portal. It's fairly well organized and easy to get to.

You're right about how hard it is to find things on individual user pages, though.  I suspect that most scripters have made their own collection of links to pages that Dora or Void or Strife or Becky Pippen or whoever else have written.  Most of those are not linked back into the wiki.  There are some real treasures among them.  There are also dozens (hundreds?) of excellent bits of discussion in this forum and its predecessors, where we have batted around ideas about Best Practice.  I keep links to many of them in my own haphazard way, but most are buried so deeply in the archives that it takes a magic wand and a steam shovel to find them.

Link to comment
Share on other sites


Rolig Loon wrote:

There isn't a page-by-page summary of all of those bits of wisdom

There isn't but at least somebody once created a wiki page with some of the most basic efficiency tips:

http://wiki.secondlife.com/wiki/LSL_Script_Efficiency

Not much but better than nothing.

Interstingly, the rather omiously titled page "LSL Hacks" also contain quite a few hints and tips how to write more efficient code:

http://wiki.secondlife.com/wiki/LSL_Hacks

And then, as Rolig said, look everywhere in the wiki.

Link to comment
Share on other sites

  • 4 weeks later...


Skyler Nexen wrote:

So I know LSL isn't exactly the most advanced language and most things have been found out by people experimenting, but was wondering if there is some sort of compiled "best practices" guide, or guidelines or something of the sort.

About what the best way is to make a new list, to clear a list, and so on and so forth. (Mostly wondered since that would be greatly helpful and seeing those new C++ Core Guidelines reminded me of wanting that for LSL)

i completly agree

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3092 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...