OOP
- Started
- Last post
- 26 Responses
- klipklap
I've been messing with writing little programs in javascript, php, asp, and ruby for a couple years now. But the code isn't smooth and sexy.
How do you coders learn object oriented programming? And how would you recommend a front end web guy learn?
- vcr0
wtf
- neverblink0
start out with functions after that, stuff like classes and prototypes
- ephix0
i know what you're saying. i learnt by messing around and getting things working on my own terms. you want to know how to do it properly?
- klipklap0
@ehpeix
yeah, I've been getting things to 'just work' for a while now. and I want them not only to work, but work well and be modular. I've started reading books on design patterns, but having a hard time connecting the textbook examples to real life applications and use.
know what I mean?
- Raniator0
Are you printing it out in braille? That isn't supposed to be smooth...
- ephix0
i know what you mean, thats when i decided i didnt want to focus on web apps any more and just plain art direction and motion graphics. but i do know what you mean. if i were to go down that route id take some courses or get some serious coding books. dunno.
- yeah, i guess thats the choice i'll have to be making soon :)klipklap
- mightyj0
I've been told that UML can help with this.
- 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.
- rson0
I took a C++ class after that every made sense and my code was more efficient.
- ephix0
that said, the knowledge of some coding concepts has come in very handy when directing others.
- 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
- flavorful0
Books?...
- Those thick things with pages in the middlethebottlerocket
- 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…
- 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.
- doesnotexist0
let someone else do it
- klipklap0
good advice, thanks qbners
- studderine0
take a programming concepts class before you do the codin'. i here that helps?
- 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…
- 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