Thread: Sad Sigil news?
View Single Post
Old 09-29-2013, 06:12 PM   #126
Katsunami
Grand Sorcerer
Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.
 
Katsunami's Avatar
 
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
Quote:
Originally Posted by tompe View Post
Why do you think it can be more easily maintained? I would say that for big programs Python is harder to maintain than C++.
You're always going around posting that sort of statements without backing them up. Why do you think that Python code is harder to maintain than C++ code?

C++ is much harder to program in that Python (which seems a lot like PHP, with regard to programming ease), because much more stuff needs to be done by the programmer himself; this alone gives you MUCH more time to maintain a Python program.

Let me tell you, as a C / C++ programmer (who normally writes embedded software to make stuff run, such as microcontrollers, where no GUI's are used and speed/code compactness is paramount): I would NEVER use C or C++ for a desktop application nowadays, if I can get away with it.

I've been looking around. Many seem to "just" design the GUI in QT Designer, and call that from Python (using PyQT or PySide), rather than coding the GUI by hand, and then compile their speed-critical parts to external modules using Cython.

Cython basically takes Python (amended with some type information), translates it into C, and then compiles it into machine code.

That way, you have all the advantages: rapid GUI prototyping in a designer, rapid code writing in Python, and if you need speed, compilation of critical parts using Cython.

The best part is that most of the nitty-gritty details "under water" are taken care of for you, which makes code a lot easier to maintain, especially for newcomers to a project.
Katsunami is offline   Reply With Quote