[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] C/C++ and Python



On Wed, Apr 22, 2009 at 8:23 AM, René Dudfield <renesd@xxxxxxxxx> wrote:
> Indeed.
>
> However... one thing that people have told me why C is easier is this:
> 'With python you need to come up with smarty pants algorithms, whereas in C
> a simple brute force approach will work fast enough'.
>
> Which is also good, if you then practice your good algorithms in python, and
> move them to C if needed later.  So that's related to your point I think -
> you can more easily use complex algorithms in python, and are forced to.
>
> Each language is easier in its own ways.

Having worked in both languages, I have to say that with Python your
head always feels clearer because you don't have 15 things that you
are keeping track of in the back of your mind, like the heap, points
to pointers, and more pointers etc. Also testing in Python is way
faster if the C program has as size at all, thus I tend to test more
and have less errors in the end. I wish I did not have to type self so
much in python!!! C++ is much better this way

-- 
Douglas E Knapp

Why do we live?