How YOU've learned OOP ? Best way to do so. ?
- Taehl
- Dreaming in associative arrays
- Posts: 1025
- Joined: Mon Jan 11, 2010 5:07 am
- Location: CA, USA
- Contact:
Re: How YOU've learned OOP ? Best way to do so. ?
Also, keep in mind that you don't have to (if you'll pardon the expression) go balls-to-the-wall full-on OO if you don't want to. When I do use OO in my games, I've noticed that I tend to gravitate towards having the innermost loops and other critical stuff in procedural style, then drift towards OO as I go "up" from the "ground". Then again, this may be a bad habit on my part, since other languages aren't as wonderfully flexible as Lua...
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
Re: How YOU've learned OOP ? Best way to do so. ?
I have to say, that I still trying out things and search for 'my' way to do things.
Atm, all these classes and inherit things are confusing for me.![Very Happy :D](./images/smilies/ms-glad.png)
I just want to program more systematic, so that I don't have to copy-paste whole functions or declare variables for any kind of game content.
And thats the point I say, I have to learn OOP.
Atm, all these classes and inherit things are confusing for me.
![Very Happy :D](./images/smilies/ms-glad.png)
I just want to program more systematic, so that I don't have to copy-paste whole functions or declare variables for any kind of game content.
And thats the point I say, I have to learn OOP.
Re: How YOU've learned OOP ? Best way to do so. ?
I learned OO in school using Java. Taking a basic course in OO is a good idea, you get a good idea of how to structure a program decently. Still, it really comes with experience.
With lua and LÖVE, you don't need OO very much but it can save a lot of time and frustration. Make sure you at least learn the basics.
With lua and LÖVE, you don't need OO very much but it can save a lot of time and frustration. Make sure you at least learn the basics.
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
-
- Prole
- Posts: 5
- Joined: Sat Nov 12, 2011 4:23 pm
Re: How YOU've learned OOP ? Best way to do so. ?
Start learning java! Its very simple, Think of a Object-Orientated Language like this it has a behavior(Method) and a state(field), get started with graphical user interfaces thand 2d graphics and sound finally networking ![Smile :)](./images/smilies/ms-smile.png)
![Smile :)](./images/smilies/ms-smile.png)
Re: How YOU've learned OOP ? Best way to do so. ?
After programming for a few years and coming to learn lua, this was actually one of the clearer overviews of OOP. I definitely recommend reading this chapter.kraftman wrote:Also have a read of this.
Who is online
Users browsing this forum: Google [Bot] and 4 guests