IMO phthon is a toy that non-programmer hobbyists use, in the same category as Quick Basic. C/C++ is used by professional programmers to write real professional programs.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
>But is it worthwhile learning C if I already know python?
Personally I think everyone can benefit from learning C, but your question suggests that you don't see any point in it. If you're a hobbyist, don't force yourself to learn something you don't really want to.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
>I just want to know where it will have advantages.
So much for the pioneering spirit of hackers and hobbyists... :icon_rolleyes:
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
>There's no point in learning an language if you don't see the point.. hobbyist or not.
That's true. Though "the point" doesn't need to be any kind of advantage, which is what you're looking for. "The point" could be as simple as the code looking cool and sparking your interest. That's what I mean by a pioneering spirit. If you only look for advantages and disadvantages, you're likely to miss something amazing.
>That's why I posted this thread.
Do you want to know why I first decided to learn C? The -> operator looked neat. Completely pointless, and I didn't care about advantages or how C differed from the language I already knew (COBOL). But that arbitrary and irrational decision turned out to be a huge changing point in my life. I know for a fact that if I had worried about whether it was worthwhile, I wouldn't have chosen C.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
Well, here is a bit of my experience.
I worked in a genetics lab where I basically wrote scripts to parse genomes and the output of programs that analyzed these genomes to automate many tasks, basically a lot of string manipulation, very complicated string manipulation. Using nothing but Python I was extremely successful, my programs handled huge workloads and not once did I feel a need to learn C, Python was great and is definitely not just for hobbyists.
Some time later I'm somewhere else and I have to make a program to examine several records of data, each taken over about 90 minutes at about 20kHz. I wrote a python script and it took about an hour just to finish one file, so I switched over to C and that sped things up to a few minutes. Although Python has a C API so I could write the computationally expensive parts in C(Con: It's a pretty intimidating API) and everything else in Python, so I still stand by Python.
Seeing as how you call yourself a hobbyist I don't imagine that you would need to be using C any time soon, although I don't recommend not learning it.
OffbeatPatriot
Junior Poster in Training
68 posts since Jul 2008
Reputation Points: 15
Solved Threads: 0
>BTW.. look at the previous post. Python IS useful atleast some of the time..
I'm not the one you need to convince. You quoted me, but Ancient Dragon is the one who claimed Python was a toy (which, for the record, I disagree with). Python is an excellent language and I use it on a regular basis both for personal and professional projects. However, if I need C or for something, Python just doesn't cut it. So your original question is still baffling because I don't use the two interchangeably. I use the best tool for the job.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401