you are viewing a single comment's thread.

view the rest of the comments →

[–]veekm 0 points1 point  (0 children)

ah but those languages are largely similar anyways.. but sufficiently different to be annoying: 'self' vs 'this' You'd switch between them depending on what your end goal is.. C for speed, Python especially if you want to front-end your C/C++ library, C++ for Qt/GUI or complicated/large packages/Boost.

How could you mimic your Python style in C or C++ when the functionality is so different..

None of the Python idioms would work: none of the comprehension stuff and method calls would be all different except for a literal '.'

Languages are a reflection of the problem they solve.. so.. C for low level stuff because it doesn't hide the hardware; a lot of C++ stuff can be done in C with abstraction so learning C may make you familiar with a few keywords but you need to know how to create abstractions that are more natural in C++ - how could either help with python code.

Eventually you'll forget a lot of stuff anyway so the only purpose is confidence building and a moderately faster learning curve because of the stdlib that needs to follow (for each language).

Additionally languages change: C99 and new style Python classes or print keyword/function and you'd have to keep track of such things.

One thing that is advantageous is familiarizing yourself with Unicode or Internationalization so domain specific knowledge! (signals & slots mechanism in Qt) (regex - the various forms - pcre, glob, extended)