Off Topic > Off Topic
Programming Megathread
<< < (198/241) > >>
Timestamp:
it's also good codewars is also going to put lua on the site too
SubDaWoofer:
can someone give me an in-depth detail of class'es in python because im still kind of confused as to what they act as
also send me it as a PM
Foxscotch:

--- Quote from: SubDaWoofer on November 06, 2016, 03:13:38 PM ---can someone give me an in-depth detail of class'es in python because im still kind of confused as to what they act as

--- End quote ---
do you not know what classes are in ANY language or just python
because if it's the second one then they do the same things they do in other languages
--- Quote from: SubDaWoofer on November 06, 2016, 03:13:38 PM ---also send me it as a PM

--- End quote ---
no. why? that's pointless. someone else might have the same question
th3coolst3r:
So im trying out for UIL Computer Science at my highschool, and i need some help

Whenever i try to learn programming, i cant stay on it, and what little i do learn, i forget in an hour or so, what is wrong with me and why cant i learn programming, i love it, and i want to learn it to be a software developer, hopefully for the military, what can i do to learn it and stick to it?
$trinick:

--- Quote from: Foxscotch on November 06, 2016, 02:22:06 PM ---python has this:

class Whatever:
  def __init__(self, stuff):
    pass

--- End quote ---


--- Code: ---Whatever = {}
Whatever_mt = { __index = Whatever };

function Whatever:create(stuff)
 local new = {}
 setmetatable(new, Whatever_mt)
 -- stuff
 return new
end

function Whatever:method()
 self:otherThing()
 self.variable = 1;
end

function Whatever:otherThing()
end

--- End code ---
Navigation
Message Index
Next page
Previous page

Go to full version