PDA

View Full Version : Learning programing want to help!



stl_rn
10-01-2006, 10:52 PM
I'm learning Python. I have never programed anything before except my watch and car radio. I heard that Python was simple to learn programmming with.
Is it capable of writing powerful programs? Does anyone know it limitations?
Could Python make the same program that C+,C++, or C could make?
I want to make all sorts of programs from keyloggers to Antivirus/Spyware/Adware Software to other usefull programs. Is Python able to make such programs possible or do I need to learn a new lanuage? Thanks for your help!!!

Moonbat
10-01-2006, 11:37 PM
For the most part, Python has very few limitations, or limitations that make little difference unless your trying to program a huge complex program, like an OS.

Ezekiel
10-02-2006, 11:17 AM
I'm learning Python. I have never programed anything before except my watch and car radio. I heard that Python was simple to learn programmming with.
Is it capable of writing powerful programs? Does anyone know it limitations?
Could Python make the same program that C+,C++, or C could make?
I want to make all sorts of programs from keyloggers to Antivirus/Spyware/Adware Software to other usefull programs. Is Python able to make such programs possible or do I need to learn a new lanuage? Thanks for your help!!!

Python is an interpreted language. In that way, it can never be as powerful or fast as a compiled language like c/c++.

Python is good as a beginner's language because it is a lot simpler than other languages. It also can be used to do most of the things more advanced languages do.

However, you shouldn't stick with python for your whole programming life, for several reasons:


Everyone who runs your 'program' has to have the python interpreter.


It is slower than compiled languages.


I don't know how good it's integration into the windows API is.



Once you've got good at programming, you should move on to a language like C, C++, or even assembly. These are the most powerful tools for programming and have huge user bases and communities surrounding them. Most programming for windows and *nix systems is done in either C or C++, and that is what all the manuals and tutorials are designed for.

But most people can't understand advanced languages without prior knowledge, so stick with python until you learn more.


For the most part, Python has very few limitations, or limitations that make little difference unless your trying to program a huge complex program, like an OS.

Actually, operating systems are written in Assembly initially. Computers only understand binary machine code, so you have to work in Assembly until you can create a compiler for your operating system. Any sort of programming language is only available for use on an OS when you have a way of converting it to data that the computer understands.

stl_rn
10-02-2006, 11:17 PM
Thanks for your s***estinon, I will continue to learn Python. I'm learning it from a book called "Absoulte Begenners Guide to Programming Python". The way it teaches Python is by creating games. Of course the games get more complex with each chapter. My question is, after I finesh with that book, should I continue to learn more about Python or, should I start learning C/C+/C++/C#?
Also, what is the difference between the different C languages? Which one is closer to the English language when programming, i.e. Python?

*Also Python is free, are any of the C languages free?*
Thank you for your help.

Moonbat
10-03-2006, 05:59 PM
C++ and C are free depending on which compiler you use.

@mike*0*
Wasn't UNIX written in C?

Ezekiel
10-04-2006, 11:43 AM
Thanks for your s***estinon, I will continue to learn Python. I'm learning it from a book called "Absoulte Begenners Guide to Programming Python". The way it teaches Python is by creating games. Of course the games get more complex with each chapter. My question is, after I finesh with that book, should I continue to learn more about Python or, should I start learning C/C+/C++/C#?

Yes, it would be ad****ble to move on to a more powerful and complex language after ******ing python. C or C++ are both good, but not C#. C# is as un-useful as VB as a language, unless you never want to actually understand real programming.


Also, what is the difference between the different C languages? Which one is closer to the English language when programming, i.e. Python?

C and C++ are very similar (and backwards-compatible, because C++ is just an advancement of C), but C# is a language developed by microsoft and should be avoided. It's always best to develop in an open language like c/c++ so you're not tied down to one operating system. C and C++ have been around for decades; C# was only recently created by microsoft.

If you're looking for something closer to the English language, that's what high level languages like python are for. C and C++ are going to be hard to understand at first, but that's what you get with powerful and advanced languages like that.


*Also Python is free, are any of the C languages free?*
Thank you for your help.

They are languages; sets of rules. You don't 'buy' a language.

But yes they are all open, free, and widely documented. All you need is a free compiler and you can be creating applications. Several compilers are paid-for (like MSVC++) , but the language is always free for whoever wants to develop using it.




@mike*0*
Wasn't UNIX written in C?

Yes, most operating systems are widely created in programming languages like C.

But the first-steps in the creation of the OS are always made in assembly/machine code. It is impossible to make an operating system in C when it doesn't even exist yet. You have to make the core of the OS first in assembly THEN make a C compiler for it, THEN you can make further additions in a higher level language. Compilers only work when an operating exists which it can build the code around.

stl_rn
10-04-2006, 02:37 PM
thanks for the tips. what compilers are best for coding in C/C+/C++?
also, do i have to learn C before i learn C+/C++?
do you know of any good books for someone who has no experience in C/C+/C++ ?
thanks again!

toast
10-04-2006, 03:23 PM
thanks for the tips. what compilers are best for coding in C/C+/C++?
do you know of any good books for someone who has no experience in C/C+/C++ ?
thanks again!

I use "Turbo C++ IDE". Thats usual. I believe if you get a book that teaches C++ , it comes with the program (on CD or disk). Then again my copy is like *0 years old or something (got it from my dad)...
"Borland" is good. ( I use that too)... Unless you want to learn C++ in 2* days... Theres a book for that too.

Toast

Ezekiel
10-04-2006, 03:49 PM
thanks for the tips. what compilers are best for coding in C/C+/C++?

Dev-C++ is the most widely used free C[++] compiler, and Microsoft Visual C++ is the most widely used paid-for compiler. MSVC++ offers more features, but dev-c++ is more than capable of doing the job, and it's free. I say use dev-c++/other free compiler until you are actually making applications for *****, and even then you don't necessarily have to pay MSVC++...


also, do i have to learn C before i learn C+/C++?

No, they are both separate languages which you learn individually. However, C++ is a subset of C so knowledge in either will make learning the other be extremely simple.

Also, C+ does not exist.


do you know of any good books for someone who has no experience in C/C+/C++ ?
thanks again!

I learned all from online tutorials, so can't recommend any books. But you can refer to my post a few days ago for a good c++ tutorial reference:


The first thing I want to do is recommend these sites for learning:

General c++:

http://newdata.box.sk/bx/c/htm/ch0*.htm
http://www.cpp-home.com/
http://www.cplusplus.com/
http://www.cprogramming.com/tutorial.html
http://www.cppreference.com/

C++ Winsock:

http://www.hal-pc.org/~johnnie2/winsock.html
http://msdn.microsoft.com/library/de...th_winsock.asp
http://www.tangentsoft.net/wskfaq

C++ Win*2:

http://www.relisoft.com/Win*2
http://www.winprog.org/tutorial
http://www.functionx.com/win*2
http://msdn.microsoft.com/
http://www.codeguru.com/forum/showth...*#sdk_registry
http://www.codeproject.com/threads/winspy.asp
http://www.antionline.com/showthread...hreadid=2*785*

Assembly:

http://docs.mandragor.org/files/Prog..._Tutor_en.html

And in particular this site, because I learned a lot from it:

http://newdata.box.sk/bx/c/htm/ch0*.htm

Also, get the windows help file because it's better than MSDN and MSDN online really sucks:

http://www.borland.com/devsupport/bo...s/BC52HLP*.ZIP

Seriously people, if you are a C/C++ programmer get the help file. You can't program on windows without it.


Unless you want to learn C++ in 2* days... Theres a book for that too.

Yeah, that book is a great resource for learning C++. You can find it online here:

http://newdata.box.sk/bx/c/htm/ch0*.htm

toast
10-04-2006, 03:59 PM
I have that book on my shelf. :)
Its all good.
T