EvilZone

Programming and Scripting => Projects and Discussion => : PhantasmagoricalTech August 25, 2012, 09:52:51 AM

: C or Python?
: PhantasmagoricalTech August 25, 2012, 09:52:51 AM
I am relatively new to programming, and am wondering if I should stick on my current path. I started with C language, but every time I look up code for it, I only get C++. Also, I've been hearing that Python is a way better starting language, and that it is very difficult to transition to most non-C based languages out of C.
I wouldn't have a problem with switching to Python or C++, but for some reason, unlike most others, I find C the easiest to understand... I really love the way it's working for me and would actually be kind of sad to have to leave it.... What do you guys think? Should i just forget about C for now because the cons are so high, or stick with it because i like and understand it more than the other languages?
: Re: C or Python?
: Huntondoom August 25, 2012, 01:51:49 PM
you're not leaving C, you're just adding a launguage to what you already know, it doesn't mean you'll directly abandon C
: Re: C or Python?
: Phage August 25, 2012, 04:21:24 PM
If you are so happy about C and find it easy, so why choose another language? I would say, stay with C and when you are ready proceed to another language.
: Re: C or Python?
: lucid August 25, 2012, 11:24:06 PM
and that it is very difficult to transition to most non-C based languages out of C.


I don't think this is true. Most people who code in C who I talk to say that learning C first, or C at all, is a good idea because most other languages after that you can pick up on easier because C is perhaps a bit harder than other languages. Python and C are very different languages and I think it is beneficial to learn both at some point.

However, as Phage said, if you like C and it works for you I'd say stick with it. C is arguably one of the most useful languages out there and I think every coder should know it.
: Re: C or Python?
: techb August 25, 2012, 11:40:20 PM
Going from C to other languages is eaiser. With the exception of ASM. For example, you will  know the difference between strings and string literal. Plus knowing memory management and pointers is always a plus.

Learn Python after your comfortable with C. Because if you know Python, you'll be a parsletoung like Harry Potter.
: Re: C or Python?
: PhantasmagoricalTech August 26, 2012, 04:22:06 AM
OK, thanks guys, i think i'll stick with C then. My only problem with it is that there seems to be very little source code out there for C. Are there any good resources for C? My favorite way to learn is to copy source code and then see how everything works by modifying it and such. However, whenever i look for things like that, I only get C++ source code... any ideas?
: Re: C or Python?
: techb August 26, 2012, 05:02:07 AM
OK, thanks guys, i think i'll stick with C then. My only problem with it is that there seems to be very little source code out there for C. Are there any good resources for C? My favorite way to learn is to copy source code and then see how everything works by modifying it and such. However, whenever i look for things like that, I only get C++ source code... any ideas?

http://www.daniweb.com/software-development/c/118
Also look at the snippets section on daniweb.

http://stackoverflow.com
Look for C tags.


http://evilzone.org/ebooks/o'reilly-secure-programming-cookbook-for-c-and-c/

http://evilzone.org/ebooks/c(not-)primer-plus/
: Re: C or Python?
: PhantasmagoricalTech August 26, 2012, 05:38:02 AM
http://www.daniweb.com/software-development/c/118 (http://www.daniweb.com/software-development/c/118)
Also look at the snippets section on daniweb.

http://stackoverflow.com (http://stackoverflow.com)
Look for C tags.


http://evilzone.org/ebooks/o'reilly-secure-programming-cookbook-for-c-and-c/ (http://evilzone.org/ebooks/o%27reilly-secure-programming-cookbook-for-c-and-c/)

http://evilzone.org/ebooks/c(not-)primer-plus/ (http://evilzone.org/ebooks/c%28not-%29primer-plus/)
Thank you Tech B! I appreciate it.
: Re: C or Python?
: hmm August 28, 2012, 11:05:20 PM
Also if you google Harvard CS50, they have video lectures on it.
: Re: C or Python?
: somegrass November 13, 2012, 07:51:31 PM
Take a look at an open source operating system. Your bound to find a ton amount of pure c.
: Re: C or Python?
: bluechill November 13, 2012, 08:22:44 PM
Take a look at an open source operating system. Your bound to find a ton amount of pure c.

Yes that's because kernels are harder to write in C++ because you'll basically be using C until you implement the new and delete operators which requires malloc and free.  To get to that point requires a lot of work in C anyways..... basically C++ is great for everything but kernel level dev.  C has less run time support necessary.  This is why OSes are written in C.

@OP

My advice is learn C then learn C++.  Then move on to languages like Java, Python, PHP, etc. all of which copy heavily from C++ and C in one way or another.  C is the hardest language in that list and then C++ introduces all the concepts to C that you will find in all other modern day languages.  C++ also introduces concepts which are not found in every language, virtual objects, multiple inheritance etc. and so if you do decide to learn more languages later on it will be easier as C++ pretty much has every feature of all the other modern programming languages (at least C++11).
: Re: C or Python?
: iTpHo3NiX November 13, 2012, 08:25:01 PM
The OP isn't here anymore -_-

Last activity: August 28, 2012, 11:05:20 PM

Bump old topic much?

</thread>