Hi all,
I’ve been away for a while due to moving house and not having a net connection, and I really need to get back into the coding groove. On coming back I notice that there has been some discussion about the deprecation of Modules. Now, before I was in the process of modularising my code (such as it is) but now it seems that it’s all changed again and I’m not quite sure how to set my modules up any more.
Any help would be really really appreciated.
Cheers. [import]uid: 7841 topic_id: 16413 reply_id: 316413[/import]
Interesting, I’ve not seen that modules are being deprecated, in fact, I’ve seen more and more help on how to use them. The Corona SDK Team has published a blog post or two on using modules.
What specific problems are you having?
[import]uid: 19626 topic_id: 16413 reply_id: 61288[/import]
Okaaay, maybe I’ve just not had my brain plugged in and have read stuff wrong (happens quite a lot).
…
In fact I’ve just had a quick scan back through the stuff I was reading and I can’t see any mention of it at all, dunno why I thought I had. I did notice that in one of the blog posts there was something about not using the package.seeall command or something like that.
My biggest problem is that I find it hard to take in information just by reading it and I’m a much better student when something is explained simply. Once something clicks then that’s it, it’s in.
With regards to modules, I know that using them is much better coding practice and that local variables are better than globals but struggle to know when to implement them.
Sorry for being so crap
[import]uid: 7841 topic_id: 16413 reply_id: 61294[/import]
http://blog.anscamobile.com/2011/09/a-better-approach-to-external-modules/
And ya modules HAVE been deprecated.
http://lua-users.org/wiki/LuaModuleFunctionCritiqued [import]uid: 64174 topic_id: 16413 reply_id: 61453[/import]