OOP
- Started
- Last post
- 26 Responses
- 1pxsolid0
I think the best thing to learn is OOP patterns and practices... once you learn these you can apply them to any language.
You use different patterns to solve different problems.
- maximillion_0
the Moock tamigotcha (sp?)(the creature he builds and feeds to keep alive) tutorial is a good example of simple OOP. I would recommend reading up on the theory and getting into using functions first and then classes (the objects) and packages (organisation of objects). Getting stuck in is always a good way to understand it. If you use AS3 there are loads of forums for support and it will be (more) applicable to what your doin now
- moth0
I don't think you can talk about guidelines and php in the same sentence rounce. I think you may have overlooked something in Ruby.
- rounce0
@moth: RoR is slow as shit and breaks a lot of the guidelines of OOP, don't forget that... (DHH can suck my balls)
I found I truly reached OOP nirvana (well I really refined my game anyways) with codeigniter (http://www.codeigniter.com/). By being forced to use a nicely layed out OO/MVC system I got into the habit of working like that even when working in other languages.
Don't go overboard on the whole clean-code-OOP-maximum-portabili... thing. Small projects don't often need it, sometimes I find it easier to just code it from scratch in a day or two and usually end up with a more elegant solution than I had in my existing codelibrary which can then be updated with my new improved method.
Good luck, feel free to email if you need help with this, I've got lots of resources to help you get going (and candy, so get in my van)
- moth0
Oh yeah.
The down side to Ruby+Rails is that it's practically impossible to set up a development environment on a PC - except via virtual machine.
This is currently leaving me with the nasty prospect of buying a mac, or running linux.
- moth0
I'm a PHP programmer, which I'm beginning to see is contradiction in terms. It's not a true programming language.
We built peoplesmusicstore.com with Ruby on Rails, in about 3/4 months. I would expect with PHP it would have taken at least double that.
Ruby+Rails is a true oop set-up, and will force you into good habits - and I'd wager you'll demand a lot more cash with it too. It's where the smart money is...
- I'm still learning rails by the by. I picked up a lot of bad habits with php...moth
- this world is all about object oriented c-languages family, which all web, all php, javascript, actionscript aredrgss
- dont believe the hype
http://www.oreillyne…drgss
- thebottlerocket0
Mooks site has a few bits and pieces about design patterns:
Specifically MVC
http://www.moock.org/lectures/mv…but also a good intro to patterns:
http://www.moock.org/lectures/in…
- studderine0
take a programming concepts class before you do the codin'. i here that helps?
- klipklap0
good advice, thanks qbners
- doesnotexist0
let someone else do it
- skelly_b0
I liked this one: http://www.amazon.co.uk/Advanced…
more concise than the O'Reilly book on the same topic. The Moock book always helps too.OOP is an abstract idea I think you have to strive for. I've noticed each of my AS3 projects gradually moves in that direction as I learn more efficient ways to break my projects up into classes.
Beyond that you need to get ahold of other people's source code and see how they are setting things up.
- thebottlerocket0
Well I am doing AS3 stuff, so I would recommned Colin Mooks Essential AS3 Book.
http://www.amazon.co.uk/s/ref=nb…
For design patterns, I would look at:
http://www.amazon.co.uk/ActionSc…
- flavorful0
Books?...
- Those thick things with pages in the middlethebottlerocket
- thebottlerocket0
By coincidence, I am in that same boat at the moment.
My advice would be to pick on language and learn OOP through that. That should give you a good foundation and should be pretty quick. You then really need to look into books regarding Design Pattens after that.
- Thanks for the advice. I guess my language of choice is ruby. see you in a couple months :)klipklap
- ephix0
that said, the knowledge of some coding concepts has come in very handy when directing others.
- rson0
I took a C++ class after that every made sense and my code was more efficient.
- mia_free0
OOP, learn it. I dont know anything about it but every programmer I have ever met has told me the wonders of OOP.
- mightyj0
I've been told that UML can help with this.