Coyote Starrk
|
Because there's going to be a separate award ceremony by the sponsor. Should know soon! (I hope~)
Sponsor? Explain!
|
|
|
|
|
klondikebar
Global Moderator
Malevolent Murkrow
Level: 44
Offline
Posts: 2977
Badges: (View All)
|
You're doing good, keep going I won a game development contest today for my university Apparently I get a prize but I don't know what it is yet I want to knooooow! Thank you And congrats
|
|
|
|
|
Shihen
|
Aaah I've seen quite a few people using Love2D in Ludum Dare. Personally haven't tried it and I don't think it's for me xD (Quite happy with what I already know) but let us know how it goes if you choose to expand on it. Thank you And congrats Thank you Sponsor? Explain!
I'll explain once I get my prize D: (It's not like I don't even know who is sponsoring us)
|
|
|
|
klondikebar
Global Moderator
Malevolent Murkrow
Level: 44
Offline
Posts: 2977
Badges: (View All)
|
I'm at the point in Learn Python the Hard Way where I previously gave up last time. Wish me luck...
|
|
|
|
Coyote Starrk
|
I'm at the point in Learn Python the Hard Way where I previously gave up last time. Wish me luck...
May the old gods and the new protect you on your journey!
|
|
|
|
Magoo
|
May the old gods and the new protect you on your journey!
And the forbidden ones too.
|
In the distance, that day, when the star became music. | |
|
|
|
Coyote Starrk
|
And the forbidden ones too.
Bro, do you even Westeros?
|
|
|
|
Shihen
|
I got my prize for winning that game development contest finally! (Prepare to spot the irony) I got an Android tablet running ICS (4.04) and a Ł15 iTunes coupon. Followed by a free lunch and getting to talk to the sponsor directly. Learned lots of information about himself, his company, and the industry. Wouldn't mind winning things more often
|
|
|
|
klondikebar
Global Moderator
Malevolent Murkrow
Level: 44
Offline
Posts: 2977
Badges: (View All)
|
I got my prize for winning that game development contest finally! (Prepare to spot the irony) I got an Android tablet running ICS (4.04) and a £15 iTunes coupon. Followed by a free lunch and getting to talk to the sponsor directly. Learned lots of information about himself, his company, and the industry. Wouldn't mind winning things more often Congrats! In my programming news, I caught up to where I was last time I tried to learn Python, but am now stuck because, once again... I can't understand freaking classes... every damn time, I just fail at understanding them...
|
|
|
|
Coyote Starrk
|
I got my prize for winning that game development contest finally! (Prepare to spot the irony) I got an Android tablet running ICS (4.04) and a Ł15 iTunes coupon. Followed by a free lunch and getting to talk to the sponsor directly. Learned lots of information about himself, his company, and the industry. Wouldn't mind winning things more often It's ironic cuz youre country doesnt use pounds? :O Congrats!
In my programming news, I caught up to where I was last time I tried to learn Python, but am now stuck because, once again... I can't understand freaking classes... every damn time, I just fail at understanding them...
Hit up the programming thread on /g/ perhaps?
|
|
|
|
Shihen
|
Congrats!
In my programming news, I caught up to where I was last time I tried to learn Python, but am now stuck because, once again... I can't understand freaking classes... every damn time, I just fail at understanding them...
Thanks! I remember the time that I had no idea how classes worked. Always tried to grasp them in PHP but because they weren't forced I never used them. I recommend learning Java for a while. It's where I really learned how to use classes and understand them the best. Or just ask away, we can answer your questions It's ironic cuz youre country doesnt use pounds? :O
Hit up the programming thread on /g/ perhaps?
I do in fact live in England so pounds are indeed my currency. Just an iTunes coupon with an Android tablet? I don't even have a single product/service that would make use of that I just gave it away to my friend to use.
|
|
|
|
Coyote Starrk
|
Thanks! I remember the time that I had no idea how classes worked. Always tried to grasp them in PHP but because they weren't forced I never used them. I recommend learning Java for a while. It's where I really learned how to use classes and understand them the best. Or just ask away, we can answer your questions I do in fact live in England so pounds are indeed my currency. Just an iTunes coupon with an Android tablet? I don't even have a single product/service that would make use of that I just gave it away to my friend to use. Doesnt android support AAC format by default cuz f u c k the poleese?
|
|
|
|
klondikebar
Global Moderator
Malevolent Murkrow
Level: 44
Offline
Posts: 2977
Badges: (View All)
|
Thanks! I remember the time that I had no idea how classes worked. Always tried to grasp them in PHP but because they weren't forced I never used them. I recommend learning Java for a while. It's where I really learned how to use classes and understand them the best. Or just ask away, we can answer your questions Alright Well, this example from learn python the hard way: class Song(object):
def __init__(self, lyrics): self.lyrics = lyrics
def sing_me_a_song(self): for line in self.lyrics: print line
happy_bday = Song(["Happy birthday to you", "I don't want to get sued", "So I'll stop right there"])
bulls_on_parade = Song(["They rally around the family", "With pockets full of shells"])
happy_bday.sing_me_a_song()
bulls_on_parade.sing_me_a_song()
I understand that the last two lines will call each song as a parameter in the sing_me_a_song function, but I don't get the whole 'self' thing. In song me a song you use 'self' as a parameter... which for some reason doesn't make sense to me... And this: def __init__(self, lyrics): self.lyrics = lyrics
I don't even know how to comprehend it, I know it's meant to basically start the class, but I can't see what it does... Another thing I'm having, is that looking at when I use Song("[Song lyrics]"), I'd assume there'd have to be another parameter because the class has self and lyrics in __init__... why only the lyrics? Sorry if this was weird to understand, I don't know what I'm talking about and it makes it harder to ask for advice... Hit up the programming thread on /g/ perhaps?
HAHAHAHAHAHAAHHAHAHAHAHAHAHAHAHA. No.
|
|
|
|
Shihen
|
def __init__(self, lyrics): self.lyrics = lyrics
This is the constructor for the class, consider it a special function (method) if you will. Everytime an object is created from that class then the constructor will be called. You'll notice the arguments 'self' and 'lyrics'. The self argument is a little complicated because it works in a different way than all the other arguments. (I'll come back to it later) For 'lyrics', that's basically the variable that will hold any value you pass into your class when you create it. All arguments after 'self' are entirely optional and up to the programmer. class Car(): colour = "Unknown" def __init__(self, col): print(col)
car = Car("Red")
Will output "Red". If you were to change the print(col) to print(colour), then we'd get an error because the variable 'colour' is not in the function (__init__). To access it you'd have to use self.colour so, print(self.colour) would print out "unknown". Setting the variable works in the same way: class Car(): colour = "Unknown" def __init__(self, col): self.colour = col
def get_color(self): print(self.colour)
car = Car("Red") car.get_color()
Each function in a class MUST have 'self' as a parameter. This is because Python passes an extra value behind the scenes, which goes into the self variable. It doesn't have to be called 'self' either, you can rename it to what you like. It'll still work in the same way. As for this line: class Song(object):
(object) is forcing whatever you pass into __init__ as an argument (lyrics) to be an object data type. That's all really. Try setting (object) to (int) and you'll see that you'll only be able to pass ints into lyrics.
|
|
|
|
|