Results 1 to 25 of 25

Thread: Python

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    zombologist Senior Member doc_bean's Avatar
    Join Date
    Oct 2004
    Location
    Riding Shai-Hulud
    Posts
    5,346

    Default Re: Python

    Well you probably know this already, but, some general programming advice:

    1. learn object orientated programming (if you're using an object orientated language), NOT procedural programming in an object-orientated language. Of course, knowing procedural programming is pretty much essential in itself, but do know the different 'âparadigms of coding and when to use them. Learning how to program is different from just learning a language.


    2. Document your code: you have to understand what everything does a year from now, at least, write what your code expects as input and what it gives as output: be complete and write in logic code if possible. This is the part about programming I really hate, but i've seen the benefits...

    3. write simple tests for pretty much every function you implement, and keep running them when you change or add things. Correcting a 'completed' program is a *****, even correcting one class can be a huge undertaking. Intermediate testing will save you time in the long run.

    4. Have fun ! Don't start a big project where you will only see the results years from now (it takes a year for a modern 3D engine to be build I think, and those are done by experts). Start with little projects and work your way up, or divide a bigger project into little pieces that have results of their own (like a graphical representation, a basic form of abstract game mechanics, a data handling system, input interface, etc.).

    Good Luck !
    Yes, Iraq is peaceful. Go to sleep now. - Adrian II

  2. #2
    Ja mata, TosaInu Forum Administrator edyzmedieval's Avatar
    Join Date
    May 2005
    Location
    Fortress of the Mountains
    Posts
    11,441

    Default Re: Python

    1. learn object orientated programming (if you're using an object orientated language), NOT procedural programming in an object-orientated language. Of course, knowing procedural programming is pretty much essential in itself, but do know the different 'âparadigms of coding and when to use them. Learning how to program is different from just learning a language.
    Python is an object orientated programming, so that's a big plus. Plus, it says here it's easy to learn. It might be, but the tutorials are stuffed with material.

    2. Document your code: you have to understand what everything does a year from now, at least, write what your code expects as input and what it gives as output: be complete and write in logic code if possible. This is the part about programming I really hate, but i've seen the benefits...
    At least I know the logic code good... That's a plus, makes you understand how the stuff works.

    Well, I'm learning Python and C++ in parallel with other stuff, and I learn these in my free time. I gave up gaming for these, so I can do my own projects in the summer.
    Ja mata, TosaInu. You will forever be remembered.

    Proud

    Been to:

    Swords Made of Letters - 1938. The war is looming in France - and Alexandre Reythier does not have much time left to protect his country. A novel set before the war.

    A Painted Shield of Honour - 1313. Templar Knights in France are in grave danger. Can they be saved?

  3. #3
    zombologist Senior Member doc_bean's Avatar
    Join Date
    Oct 2004
    Location
    Riding Shai-Hulud
    Posts
    5,346

    Default Re: Python

    Quote Originally Posted by edyzmedieval
    Python is an object orientated programming, so that's a big plus. Plus, it says here it's easy to learn. It might be, but the tutorials are stuffed with material.
    From what I've read about Python it certainly seems like an interesting language. I don't like tutorials much since they're usually to slow for my taste, but they're a necessary evil, most of the time.

    Well, I'm learning Python and C++ in parallel with other stuff, and I learn these in my free time. I gave up gaming for these, so I can do my own projects in the summer.
    What's the project you are planning, if you don't mind me asking ?
    Yes, Iraq is peaceful. Go to sleep now. - Adrian II

  4. #4
    Ja mata, TosaInu Forum Administrator edyzmedieval's Avatar
    Join Date
    May 2005
    Location
    Fortress of the Mountains
    Posts
    11,441

    Default Re: Python

    First of all, I'll start something like Tetris, to keep my interest up.
    My bigger project is a sort of RPG, Mount&Blade style only.
    Ja mata, TosaInu. You will forever be remembered.

    Proud

    Been to:

    Swords Made of Letters - 1938. The war is looming in France - and Alexandre Reythier does not have much time left to protect his country. A novel set before the war.

    A Painted Shield of Honour - 1313. Templar Knights in France are in grave danger. Can they be saved?

  5. #5
    Ja mata, TosaInu Forum Administrator edyzmedieval's Avatar
    Join Date
    May 2005
    Location
    Fortress of the Mountains
    Posts
    11,441

    Default Re: Python

    So I'm sort of halfway to making the Tetris in C++. Hope it works. Wish me luck.

    If the mods don't mind(especially LEN, but he's easy to fool...Some Asian women and he's toast ), I'll keep my progress here.
    Ja mata, TosaInu. You will forever be remembered.

    Proud

    Been to:

    Swords Made of Letters - 1938. The war is looming in France - and Alexandre Reythier does not have much time left to protect his country. A novel set before the war.

    A Painted Shield of Honour - 1313. Templar Knights in France are in grave danger. Can they be saved?

  6. #6
    Boy's Guard Senior Member LeftEyeNine's Avatar
    Join Date
    Sep 2003
    Location
    Yozgat
    Posts
    5,168

    Default Re: Python

    No probs for me as long as you feel it's suitable for forum scene. But Granpa may have something to say though.

  7. #7
    zombologist Senior Member doc_bean's Avatar
    Join Date
    Oct 2004
    Location
    Riding Shai-Hulud
    Posts
    5,346

    Default Re: Python

    Quote Originally Posted by LeftEyeNine
    No probs for me as long as you feel it's suitable for forum scene. But Granpa may have something to say though.
    I rather like the idea of a game development thread, it should certainly have it's place here imho.

    edyzmedieval: which development environment are you using ?
    Yes, Iraq is peaceful. Go to sleep now. - Adrian II

  8. #8
    Senior Member Senior Member Duke John's Avatar
    Join Date
    May 2003
    Location
    Netherlands
    Posts
    2,917

    Default Re: Python

    Have a look at Panda3D. It's a free 3D engine that can be accessed through Python.
    http://www.panda3d.org/

  9. #9
    Ja mata, TosaInu Forum Administrator edyzmedieval's Avatar
    Join Date
    May 2005
    Location
    Fortress of the Mountains
    Posts
    11,441

    Default Re: Python

    Wow, it looks really nice. Check this project, which is so cool:
    http://www.etc.cmu.edu/projects/orb/images.htm

    For Python stuff, I'm learning Blender. Panda3D might be a suitable addition.
    Ja mata, TosaInu. You will forever be remembered.

    Proud

    Been to:

    Swords Made of Letters - 1938. The war is looming in France - and Alexandre Reythier does not have much time left to protect his country. A novel set before the war.

    A Painted Shield of Honour - 1313. Templar Knights in France are in grave danger. Can they be saved?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO