ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I realize that this question has been asked in various ways.
I have NO, 0, null experience in programming and I have just switched to Linux. I have decided to try to learn to program. I have read a lot of threads on this site and I think that either C++ or Python seem to be the best at this stage. I know that opinion varies but I think those are the choices that I will stick to. I have taken the advice on the books and looked over all of the sites that were posted already, I don't want to beat a dead horse.
My question is: What tools do I need for C++ and/or Python? What tools are needed in general?
Once I know what they are I can find them on my own, and the information related to them.
kdevelop, vim, and gvim are some good editing programs. make shure you have the GNU compiler on your machine (i.e. gcc,g++). just type "gcc" and hit enter to see if you do. if not you can find it on the cds you used to install linux. the biggest thing though is to check to see if you have python since thats general not a common install. just type python in a terminal to see if thats installed too.
You should also decide do you want to write console or X11 programs. If you just started off, and just wanna learn, console applications will be fine. As chewysplace said, you need 2 things: text editor to write code in ( consider gvim, emacs ( perhaps bit hard for a begginer ), joe, nedit ... I'm happy with gvim ), and a compiler ( gcc ).
For documentation you have lots of great sites, some c and cpp books on www.bxteam.org/knjige.php
I would suggest python. C++ might overwhelm you, if you're begining. However, if your of the "throw me in the deep end so I can truly learn to swim" school of thought, then you might choose C++ it's up to you.
Python should be installed on your machine. type 'python' to find out.
python can be programmed line by line, or used in a text editor.
python.org will help you out ALOT.
Oh: and may I suggest that you learn html? *dodges rotten fruit thrown by angry members*
I agree with titanium... if I were learning how to program right now I'd probably use Python first.
Kdeveloper is a pretty good program (as far as IDE's go, though in general I hate IDE's), but it is a little hard to use for somebody new to programming and IDE's.
I suggest you sould start from the language a good book is easier to get
KDevelop has a plus, because it handles Makefiles for you (it makes your projects more compilicated, on the other hand). For first programs you can use any simple editor you like (but not OpenOffice.org, somehing just for plain text).
To sum up, what you need:
- a good editor
- gcc (if you decide to start from C/C++, should be installed)
- python (if you decide to start with Python, but it should be already installed)
- KDevelop , just to try it
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.