Forum > Software Development

Re: Cross-platform programming: C++/Qt vs. Python/Qt

(1/2) > >>

schlumpf:
Learning rates differ. Scripting languages tend to be easier, having more library features. Also, a simple packet managing and a lot of people using it. C++ is hard to master and easy to write shitty code in. Scripting language programmers don't seem to care about shitty code.

In the end, you can accomplish the same. WIth less code in non-C++, but meh. Every language has design fuckups and ugly parts. With ruby and objc as base, you should be able to learn both.

schlumpf:
Pick any project that interests you. Read source code.

Ascathos:
Actually, I started looking into the C++ code with modding Trinity Core. If you look at different codes, interpret them and see what they do in the whole (if you know what the whole does), it's actually forming a picture. It is a base to work from, so to speak. The more you go into it and, for example, look things up to understand them, the more clear it gets.


Then again, Trinity Core is using self-defined functions for the post part. But it helps to understanding the basics imo. Not to mention that I doubt that Trinity is always using "good code" :p

Steff:
The problem with c++ is that c is a full subpart of the ewn language and you can do your learnd before 10 years coding tricks inside an shoulkd be oop app. Sometimes this can realy give you speed but most times it just lead to shit code :)

If you accept some rules you can write the same good loking code as in any other oop language.

Gamh:
I couldn't replied to this earlier because I had no experience in Python, but these days I'm learning it so...

Python seems to be quite excellent : intelligent and classy syntax, easy OOP features if needed, high-level abstraction awesomely done, and from what I've seen the implementation seems to be very clean and efficient (I clearly do not have enough C knowledge to judge it though).

I would still recommend to learn C or C++ first before one plans to write and share cross-platform software, for this exact reason :

--- Quote from: "Schlumpf" ---Scripting language programmers don't seem to care about shitty code.
--- End quote ---
If you want to be an efficient dev, my advice would be to learn a language that takes you to a trip through most aspects of middle-low levels programming, so when you start Python or anything clearly high-level, you actually know or have a precise idea of what happens under the hood. Think the many languages have their interpreter/compiler written in C, at least in the first time. Starting with a scripting language because it's easier to learn and write sounds like a counter-argument *in the long term*.

Moreover, in this topic, Qt is written exclusively for C++ and the Python/Qt interface is only a wrapper iirc. It may not be a problem, but that could help understanding the implementation.

Navigation

[0] Message Index

[#] Next page

Go to full version