Re: [Tutor] Adding network play to an open source game.

2008-02-08 Thread Timothy Sikes
Thanks for your advice. You're probably right, I do need to figure out sockets first... But it's a goal to work towards... I don't know if I would keep up computer programming if I didn't have a specific goal. A few things: I have the author's email of konquer (it was in the source). I do

Re: [Tutor] Adding network play to an open source game.

2008-02-08 Thread Tiger12506
I wish to warn you that I've never done anything like this before, but I have a couple of thoughts here. First thought is, network games tend to be slow because sending state information to everyone with enough frames per second to make it decent game play is a lot of information to send... So t

[Tutor] Adding network play to an open source game.

2008-02-08 Thread Timothy Sikes
Hi. First of all, I'm not an amazing programmer. But, I do have large goals, somtimes too large. There is an open source game, konquer, (it's on the ubuntu repos.) that I would like to extend with python to include a network based game. But, I only know how to do simple sockets Is this

Re: [Tutor] Is it possible?

2008-02-08 Thread Alan Gauld
"Nathan McBride" <[EMAIL PROTECTED]> wrote > Is it possible to write a program that you pipe other programs > through > and it measures the MBs per second of data moved? Like I could pipe > it > a cp and find out how fast the cp is working? Not in any kind of general sense. Even for cp its not

Re: [Tutor] Cobra

2008-02-08 Thread Alan Gauld
"Tiger12506" <[EMAIL PROTECTED]> wrote > It has definite strengths over python, it seems, and some things I > do not > like. My feelings too. My main gripes being that it is based on .NET/Mono and that it only supports OO, no procedural or Functional code. But it has enough positive features t

Re: [Tutor] designing POOP

2008-02-08 Thread Alan Gauld
"bhaaluu" <[EMAIL PROTECTED]> wrote There have been lots of comments about this already but I'm deliberately jumping in at this level because I want to pick up a few general points... > class Explorer(object): >"""player""" >def __init__(self,name): >"""initilaization method""" >

Re: [Tutor] designing POOP

2008-02-08 Thread Tiger12506
> There is nothing like growing a program to the point where you don't > know how it works or how to change it to make you appreciate good design Amen. I was recently fighting with an example of a multi-client, simple server that I wanted to translate into assembly. Not only was the code unreada

Re: [Tutor] designing POOP

2008-02-08 Thread Tiger12506
> This is something that one can only gain from experience? > I really had to struggle to get the Light class to work at all. > I have no idea how many times I started over. But I do feel > that I am starting to learn some of this stuff. This surprises me... I guess it does take experience. What i

Re: [Tutor] Cobra

2008-02-08 Thread Kent Johnson
Tiger12506 wrote: > It's dangerous posting something like this on a python website. ;-) It is a bit off-topic, especially for this list. c.l.python is a little better but one of the general language forums would be more appropriate. > Particularly interesting is the compilation directly to exe.

Re: [Tutor] designing POOP

2008-02-08 Thread Kent Johnson
bhaaluu wrote: > On Feb 8, 2008 4:46 PM, Kent Johnson <[EMAIL PROTECTED]> wrote: >> "Refactoring is the process of changing a software system in such a way >> that it does not alter the external behavior of the code yet improves >> its internal structure." -- Martin Fowler in Refactoring > This is

Re: [Tutor] Cobra

2008-02-08 Thread Tiger12506
It's dangerous posting something like this on a python website. ;-) It has definite strengths over python, it seems, and some things I do not like. Particularly interesting is the compilation directly to exe. Damn. I'm am seriously impressed with that. Cobra appears too new to learn and switch t

[Tutor] Is it possible?

2008-02-08 Thread Nathan McBride
Is it possible to write a program that you pipe other programs through and it measures the MBs per second of data moved? Like I could pipe it a cp and find out how fast the cp is working? Thanks, Nate ___ Tutor maillist - Tutor@python.org http://mail

Re: [Tutor] designing POOP

2008-02-08 Thread bhaaluu
On Feb 8, 2008 4:46 PM, Kent Johnson <[EMAIL PROTECTED]> wrote: > bhaaluu wrote: > > > It also cleaned up main(), and put everything in well defined packages > > at the top of the program. > > Yes, good OOD puts things into cohesive, comprehensible packages. > > > I can see do difference in "game p

Re: [Tutor] designing POOP

2008-02-08 Thread Kent Johnson
bhaaluu wrote: > It also cleaned up main(), and put everything in well defined packages > at the top of the program. Yes, good OOD puts things into cohesive, comprehensible packages. > I can see do difference in "game play". 8^D And that's a good thing, right? "Refactoring is the process of ch

Re: [Tutor] designing POOP

2008-02-08 Thread bhaaluu
On Feb 8, 2008 3:24 PM, Kent Johnson <[EMAIL PROTECTED]> wrote: > > and change the loop from >while True: > to >while explr.alive: > > This would give you an Explorer class that actually does something useful. > > Kent > It also cleaned up main(), and put everything in well defined pa

[Tutor] HTTPS file upload

2008-02-08 Thread Stuart van Zee
I have a requirement to automate uploading files using https. The https server doesn't give a form or anything they just gave me a URL and said to "push" the files to the URL using HTTPS. Does anyone here have an idea how to do this. I have done some Python programming but nothing like this, and

Re: [Tutor] designing POOP

2008-02-08 Thread Kent Johnson
bhaaluu wrote: > class Explorer(object): > """player""" > def __init__(self,name): > """initilaization method""" > self.__name = name > self.strength = 20 > self.wealth = 60 > > def get_name(self): > return self.__name There is no need for get_

Re: [Tutor] designing POOP

2008-02-08 Thread bhaaluu
On Feb 7, 2008 9:40 PM, Tiger12506 <[EMAIL PROTECTED]> wrote: > There's a couple of errors in here that no one has addressed yet because the > question was geared towards programming style... So now I will address them. > Or undress them, I suppose. ;-) I didn't make much progress until I started

[Tutor] NYC Python Users Meetup February Meeting Announcement....

2008-02-08 Thread John Clark
Please pardon the PSA: The New York City Python Users Meetup Group is planning on having our February meeting on February 12th, from 6:30pm - 8:00pm. For more information, please see: http://python.meetup.com/172/calendar/7082384/ Anyone in the NYC area interested in using Python, learning m

Re: [Tutor] designing POOP

2008-02-08 Thread Kent Johnson
Alan Gauld wrote: > Unit tests and TDD is not a design technique per se. > It is definitely not a technique for designing OOP programs > its a programming technique that makes code more reliable > (whether OOP or not). > > Where it does help in design is by focussing attention > on how a class (o

Re: [Tutor] designing POOP

2008-02-08 Thread Alan Gauld
"bhaaluu" <[EMAIL PROTECTED]> wrote > PyUnit: > It really doesn't seem to be an "absolute beginner" technique. Unit tests and TDD is not a design technique per se. It is definitely not a technique for designing OOP programs its a programming technique that makes code more reliable (whether OOP or