Hi folks - I had a shot at explaining classes for people who are new to coding. Link: http://codeatuts.blogspot.com.au/2012/08/interlude-11-classes-in-lua-and-codea.html
I look forward to the comments, I know that this is a subject on which everyone has an opinion!
A question, the classes in Lua/Codea are complete as classes in other languages?, encapsulation, inheritance, polymorphism, ecc. ecc?
.@elvio - the classes in Lua can do all that good class stuff. I talk about encapsulation in part 1 of the tute. I will cover the rest in part 2.
As Lua is a dynamic language, in many cases there is no need to define subclasses but it can be done. Have a look at this: http://twolivesleft.com/Codea/Talk/discussion/96/class-inheritances
@Reefwing, that is a very well written and informative tutorial. Looking forward to any additional parts that you may come up with.
As usual, thank you very much for all of your help.
Wow, certainly is complicated! Thanks @Reefwing!
Hi @Fred - yes I think is one area that Apple have failed in delivering from a UI perspective. Everything else they do is so well crafted that this process sticks out (with the possible exception of iTunes which is becoming less usable and more bloated with every iteration).
Abstraction for its own sake is pointless.
You shouldn’t say things like that with a mathematician in the room …