Thanks for sharing these tutorials with everyone! [import]uid: 84637 topic_id: 33679 reply_id: 136298[/import]
Hey all,
I’ve received fairly concerning feedback from a knowledgable source regarding these tutorials. Please see this post for details: http://www.reddit.com/r/learnprogramming/comments/17300n/ooplua_tutorials_for_corona_mobile_dev/
I really do enjoy helping the community in whatever way I can, so I will begin work on a re-write as soon as I can, and I apologize for sharing any misleading knowledge about writing OO-Lua. [import]uid: 36792 topic_id: 33679 reply_id: 140115[/import]
Hey all,
I’ve received fairly concerning feedback from a knowledgable source regarding these tutorials. Please see this post for details: http://www.reddit.com/r/learnprogramming/comments/17300n/ooplua_tutorials_for_corona_mobile_dev/
I really do enjoy helping the community in whatever way I can, so I will begin work on a re-write as soon as I can, and I apologize for sharing any misleading knowledge about writing OO-Lua. [import]uid: 36792 topic_id: 33679 reply_id: 140115[/import]
Do not worry about it! I know that you did what you thought at the time was right. It takes a lot of guts to come back here and say what you said. My hat to you!
I LOVE your tutorials about OOP. Please write some more when you get a chance! I am trying to get away from my spaghetti type of code (basically having one BIG game.lua and multiple .lua for help, options…) I really need to do a better job with game.lua and your method seems to be the way to go. I hope one day you will have enough time to put together a simple app using OOP so we can the actual flow…
THANKS for sharing with the community.
Mo [import]uid: 100814 topic_id: 33679 reply_id: 141730[/import]
Do not worry about it! I know that you did what you thought at the time was right. It takes a lot of guts to come back here and say what you said. My hat to you!
I LOVE your tutorials about OOP. Please write some more when you get a chance! I am trying to get away from my spaghetti type of code (basically having one BIG game.lua and multiple .lua for help, options…) I really need to do a better job with game.lua and your method seems to be the way to go. I hope one day you will have enough time to put together a simple app using OOP so we can the actual flow…
THANKS for sharing with the community.
Mo [import]uid: 100814 topic_id: 33679 reply_id: 141730[/import]
Hey All,
The re-write of this tutorial is finally complete! I mashed them up into one definitive guide. Enjoy!
http://www.ardentkid.com/blog/from-zero-to-oo-ardentkids-guide-to-object-oriented-lua-with-corona-sdk [import]uid: 36792 topic_id: 33679 reply_id: 142875[/import]
Nice! I’ll suggest it to be included to the resource centers:
http://www.coronalabs.com/resources/tutorials/
http://developer.coronalabs.com/forum/2013/01/07/corona-resource-centre-tutorials-templates-and-more
Naomi [import]uid: 67217 topic_id: 33679 reply_id: 142884[/import]
Thanks Naomi! [import]uid: 36792 topic_id: 33679 reply_id: 142886[/import]
Hello ArdentKid,
Thank you for being so thorough with updating your tutorials to help us too. I did realize some time ago when I was trying to implement inheritance with your framework, that your former approach was not exactly OO but I do think that for simpler, less inheritance-intensive purposes it is still a valid approach.
I do wonder one thing in your revised tutorials.
In your subclasses Animal and Cat, near the beginning of their scripts, you are creating a local variable “Super” into which you load the respective super class script. You then reference this local variable whenever you need to access parent variables/methods.
Is that local "Super"variable not redundant? I thought that the call Class([parentClass]) took care of creating a “super” variable that directed to the parent class.
Is there any particular reason why you are creating this local “Super” variable in each subclass?
Thank you for your continued help! [import]uid: 142439 topic_id: 33679 reply_id: 143141[/import]
@Ardenkid: thank you so much for the re-write! Beautiful. One suggestion about the full example. Rather than counting on people donation, I will strongly suggest your make the example paid. Say $10-20 and have people who really want to start using OOP to pay for it.
Of course just a suggestion. Maybe other people would have better suggestions to make writing a full example worth your time.
Mo [import]uid: 100814 topic_id: 33679 reply_id: 143152[/import]
@rcuba87 - you can just put the super class’s require in the class call: Class(require(“someParentClass”)), but then make sure you replace all your calls to the super class with for example “self.super.show(self)” instead of just “Super.show(self)”. I like the the second one better syntactically, so thats why I localize it.
@LaridGames - thats a good idea but Im not sure how many people would buy it. Its still a good recommendation so im leaning that way now. Thanks! [import]uid: 36792 topic_id: 33679 reply_id: 143207[/import]
Hey All,
The re-write of this tutorial is finally complete! I mashed them up into one definitive guide. Enjoy!
http://www.ardentkid.com/blog/from-zero-to-oo-ardentkids-guide-to-object-oriented-lua-with-corona-sdk [import]uid: 36792 topic_id: 33679 reply_id: 142875[/import]
Nice! I’ll suggest it to be included to the resource centers:
http://www.coronalabs.com/resources/tutorials/
http://developer.coronalabs.com/forum/2013/01/07/corona-resource-centre-tutorials-templates-and-more
Naomi [import]uid: 67217 topic_id: 33679 reply_id: 142884[/import]
Thanks Naomi! [import]uid: 36792 topic_id: 33679 reply_id: 142886[/import]
Hello ArdentKid,
Thank you for being so thorough with updating your tutorials to help us too. I did realize some time ago when I was trying to implement inheritance with your framework, that your former approach was not exactly OO but I do think that for simpler, less inheritance-intensive purposes it is still a valid approach.
I do wonder one thing in your revised tutorials.
In your subclasses Animal and Cat, near the beginning of their scripts, you are creating a local variable “Super” into which you load the respective super class script. You then reference this local variable whenever you need to access parent variables/methods.
Is that local "Super"variable not redundant? I thought that the call Class([parentClass]) took care of creating a “super” variable that directed to the parent class.
Is there any particular reason why you are creating this local “Super” variable in each subclass?
Thank you for your continued help! [import]uid: 142439 topic_id: 33679 reply_id: 143141[/import]
@Ardenkid: thank you so much for the re-write! Beautiful. One suggestion about the full example. Rather than counting on people donation, I will strongly suggest your make the example paid. Say $10-20 and have people who really want to start using OOP to pay for it.
Of course just a suggestion. Maybe other people would have better suggestions to make writing a full example worth your time.
Mo [import]uid: 100814 topic_id: 33679 reply_id: 143152[/import]
@rcuba87 - you can just put the super class’s require in the class call: Class(require(“someParentClass”)), but then make sure you replace all your calls to the super class with for example “self.super.show(self)” instead of just “Super.show(self)”. I like the the second one better syntactically, so thats why I localize it.
@LaridGames - thats a good idea but Im not sure how many people would buy it. Its still a good recommendation so im leaning that way now. Thanks! [import]uid: 36792 topic_id: 33679 reply_id: 143207[/import]
Hey All,
The re-write of this tutorial is finally complete! I mashed them up into one definitive guide. Enjoy!
http://www.ardentkid.com/blog/from-zero-to-oo-ardentkids-guide-to-object-oriented-lua-with-corona-sdk [import]uid: 36792 topic_id: 33679 reply_id: 142875[/import]
Nice! I’ll suggest it to be included to the resource centers:
http://www.coronalabs.com/resources/tutorials/
http://developer.coronalabs.com/forum/2013/01/07/corona-resource-centre-tutorials-templates-and-more
Naomi [import]uid: 67217 topic_id: 33679 reply_id: 142884[/import]
Thanks Naomi! [import]uid: 36792 topic_id: 33679 reply_id: 142886[/import]