logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Proper ettiquette when extending someone else's work?

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development
View previous topic :: View next topic  
Author Message
Grim



Joined: 04 Jan 2005
Posts: 12

PostPosted: Tue Jan 11, 2005 3:39    Post subject: Proper ettiquette when extending someone else's work? Reply with quote

I rolled up my sleeves recently and started work on a Persistent Journal system using NWNX2. I know there are already several options out there for doing this, but I wanted to use this as a project to help me understand how to really use the ODBC extension to NWNX2.

I have never really gotten into scripting because other members on our team have that skill and I just ran the systems stuff. Now that we're using MySQL and because I have significant database experience, I'm starting to learn scripting to build some of the cool things we hope to achieve utilizing NWNX2.

All that being said, here is my question. I have been looking at Knat's Persistent Quest and Journal scripts to serve as a blueprint for how I might implement some of our desired functionality.

In his work he has a function called AddPersistentJournalQuestEntry. I'm going to have a very similar function in my script and at first thought of using the same name, but then thought that might be bad practice. I already plan to credit his work, but should I just prefix all of my functions with something new so there is a clear distinction and doesn't cause any confustion?

Thoughts?
_________________
Grim Havoc
Systems guy for Mists of the Mordri
(now private)
Back to top
View user's profile Send private message Yahoo Messenger
Liberty Valance



Joined: 06 Jan 2005
Posts: 21
Location: A Persistent World West2

PostPosted: Tue Jan 11, 2005 4:20    Post subject: Reply with quote

I would definitely recommend prefixing (if not renaming) your functions... if you decide to publicize your work later, it will prevent conflicts in other modules which have Knat's system already installed, and even if you don't, it can help to clarify that it's a custom function.

Good to hear that you're giving credit though... all too often I see stuff that's obviously based off other work, with no credit given, and even I've sometimes simply forgotten to do so (although revisions of my work include it once I've noticed).
_________________
A Persistent World West2 | APWW2 Forums
Wirehead Studios
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
DarkstarsDad



Joined: 17 Jan 2005
Posts: 59
Location: Overland Park, Kansas USA

PostPosted: Mon Jan 17, 2005 0:27    Post subject: prefixing. Reply with quote

I agree Adding a uniique prefix too your scripting can make it easier for someone else to identify it if you do release it publicly. And it can make it alot easier for the other members of your team to tell what the scripts are when you are working with multiple people on the same module. This can save alot of searching for them (and you) if the module gets large. I have found keeping the script names standardised can save hours of searching during debug and changes.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group