-
Preparing for a Pro....
hy
i am currently working on a project but i am not too sure on using functions or classes...the project is going to be given to a ActionScript Profressional who will put the finshing touches on it and also make it so that players could upgrade to become members...therefore would it be ideal to use classes or functions also the project is intended for single player only not a MMO...if you want more details please dont hesitate to ask.
thank you :)
-
You message is a bit vague but I think that no matter what your project is, if you're going to hand the code over to someone else, then the most important thing is to use some techniques you're familiar with. This will let you write some clean code because it will be easy for you to imagine the structure of your program right from the beginning.
If you're familiar with both traditional and OOP programming, then I can't help you =)
-
sorry about the message...basically im gonna hand the project to someone else but how should i prepare it for a freelancer for example...should i code it using the old skool procederal way i.e using functions or the OOP way i.e classes...also are classes more flexible and would be benefical to the other person in terms of adding new features?
-
well, it depends on the person you are handing to, but in general, OOP is a lot better to work with, as it is flexible, and easy to understand and modify! Just don't forget to include a design doc along with your project files, so that he knows what you want the finished product to be like!
-
thanks...but are there any good OOP tutorials you can recommend to me because ive never used OOP but i am keen to learn...how do i know if i am using OOP instead of standard procedral coding?....just out of curiosity bluemagica, are u using OOP for your MMO Project?
-
yeh, well kindof, cause some codes are easier left on the timeline! But that's my own way!
Every programmer has his own way of coding, and frankly speaking, the application of OOP itself varies from programmer to programmer! But the basic is simple, associate your code with real world "objects", and think how it should play out in the real world! What I really suggest is, you get rid of the FlashIDE and start using something like FlashDevelop, without the timeline and the visual stage, you will soon see your coding style changing towards OOP!
-
Don't know which one is better as I don't use classes but the advice I can tell you is to use a lot of comments :P That will make the other developer's life easier.
-
If I understand correctly, you are having a AS pro add a membership thing to your program. If so, he will probably be blocking certain features to "Non Members" correct?
The easiest way for him to do this would to not allow the program to call certain classes for a non Member.
Seriously, if you are adding code to something that someone gives you, OOP is much nicer and in my opinion preferred. If you give him/her OOP code, then he/she never has to see the inner workings, and/or accidentally add a period.
It makes life much easier if you don't have to search through the entire code to figure out where to add the Membership function.
[EDIT] I am only moderately experienced with OOP, but compared to the jumbled mess thrown into one frame, I just like it more.[/EDIT]