I have been talking about it (mostly to myself) for a while now, but I think it’s about time I put some time into becoming a better developer, since I’m doing more and more of that for work.
Most of my development is PHP and Actionscript, and I want to learn good OOP for both. Would you guys recommend getting OOP books specific to each language, or is there also a good generic OOP book that has good practices for any programming, or…?
Any suggestions will be handsomely rewarded with back rubs and nachos.
For PHP OOP is pretty easy its just organizing your project in an OOP way that’s annoying. For PHP I would say get a book as it may describe theory and organization better to you in examples.
For OOP in AS switch to FlashDeveloper(.org) and that will make OOP way easier for you. Most of the stuff for AS3 is in OOP… so just look through other peoples source and see how they organize.
Although it’s mostly focused on Actionscript, it’s got incredible information on OOP design patterns. I’ve never learnt so much from a book as I did from;
Advanced Actionscript 3 with design patterns by Joey Lott and Danny Patterson. Both work at schematic.
Cool, thanks temp. I think I will get a book for PHP.
For OOP in AS, I don’t actually even have Flash CS3 yet (weak, I know). Is it possible to learn good OOP in AS2, in a way that will transfer (somewhat) over to AS3? Or does FlashDeveloper allow me to code in AS3 without having CS3 installed?
Also, I want to make sure I’m learning good practices, so I’m a little hesitant to just look at other people’s code, since I don’t always know who is knowledgeable and who will steer me wrong. Any suggestions for this (besides the obvious senocular)?
^Like I was saying don’t use the Flash IDE to learn OOP… many members here use the open source project FlashDevelop[whisper].org[/whisper]. And you do not want to be wasting your time with AS2.
^Just take your laptop outside and get a nice tan. You don’t have to actually do anything people will just thing wow he goes outside and does stuff. :fab:
Also make sure you download the nightly build of flashdevelop.
Download the Open Source Flex SDK (nightly build):
[QUOTE=Templarian;2354739]Plus the Flash IDE isn’t very OOP friendly.[/QUOTE]
That’s the dumbest thing I’ve heard.
I’d read senocular’s tutorials on this site. There’s one in AS1 and another in AS2 but the concepts they teach are fudemental to any OOP in Flash and if you understand them then AS3 will be no problem.
[QUOTE=TheCanadian;2354944]That’s the dumbest thing I’ve heard.
I’d read senocular’s tutorials on this site. There’s one in AS1 and another in AS2 but the concepts they teach are fudemental to any OOP in Flash and if you understand them then AS3 will be no problem.[/QUOTE]
You know what i mean its no Flex IDE. :lol: It doesn’t even have code hinting for your classes. From what I hear CS4 changes this.
I have to agree. And the fact that it doesn’t automatically do the imports you need when making as files is a royal pain in the butt. The flash IDE makes oop programming more painful than flashdevelop or flex builder. deny that and you are fooling yourself.
I would’ve thought the Flash IDE is an intuitive OOP tool. After all, when you create a movieclip in your library and drag it onto the stage, you’re (knowingly or otherwise) automatically creating an object. Furthermore, by giving that object a name, you’re then instantiating it…which is, ultimately, what OOP is all about:
In the beginning, there was nothing. And lo, an object appeared…and that object existed!
[QUOTE=Iamthejuggler;2354972]I have to agree. And the fact that it doesn’t automatically do the imports you need when making as files is a royal pain in the butt. The flash IDE makes oop programming more painful than flashdevelop or flex builder. deny that and you are fooling yourself.[/QUOTE]
I never denied it, I just said that dismissing Flash altogether is retarded. I program in Flash and never have any problems.