LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux Programming (https://www.linuxquestions.org/questions/linux-newbie-8/linux-programming-652588/)

ceantuco 06-30-2008 10:04 AM

Linux Programming
 
Hi Guys,

now that I have some experience with Linux I would like to learn basic Linux Programming and scripting. Can anyone give me an advice where to start? I have 0 programming experience other than Qbasic when I was about 9 years old! (long time ago)
Your help is greatly appreciated!

Nylex 06-30-2008 10:09 AM

Can you clarify what you mean by "Linux programming"? There's a guide to Bash scripting here.

gullit 06-30-2008 10:21 AM

You can start with a scripting language, for example python, there are several tutorials about python for free on the internet, on the other hand, if you want to put fun into your programming adventure you can try C :)

ceantuco 06-30-2008 10:45 AM

Nylex, what I meant was programming with Linux!

Nylex 06-30-2008 10:49 AM

It's not really that different than programming on another operating system I'd imagine (obviously there will be some differences, however). Just pick a language and get a good book. I think it depends more on what exactly you want to do.

ceantuco 06-30-2008 11:15 AM

thanks guys!

salasi 06-30-2008 03:19 PM

My three pieces of advice were going to be:
  1. Python
  2. Begining linux programming (Wrox)
  3. Use the net. Search on 'linux' 'programming' and 'tutorial' (plus other terms) for example

I note that I'm not the first to say 'python', but I still wanted to say it anyway. As languages go, its quite 'clean' and consistent, which makes it a better place to start than, perl, say and yet it is sufficiently closely related to C/C++ that you could go to one of those afterwards without a great culture shock. And you can still do quite serious stuff with it.

The book is quite a good reference on the linux environment generally (also consider almost anything published by O'Reilly with an appropriate title).

Having said those two, there are loads of useful tutorials, guides and other documents scattered around the web. And generally that is free, where buying books isn't. And if your distro of choice has an 'install extra documentation' option, take it. There is often useful stuff hiding in there, too (howto's, etc).

resetreset 07-02-2008 04:51 AM

Quote:

Originally Posted by ceantuco (Post 3199355)
Nylex, what I meant was programming with Linux!

Don't learn shell. It's awful. BASIC was much better :)

Nylex 07-02-2008 05:52 AM

Quote:

Originally Posted by resetreset (Post 3201267)
Don't learn shell. It's awful. BASIC was much better :)

Why? Shell scripting is useful..

makyo 07-02-2008 06:45 AM

Hi.

Shell scripting is only one of the scripting languages. It may have features that do not appeal to everyone, but it is indispensable for many aspects of *nix:
Quote:

To apply the Unix philosophy effectively, you'll need more than
just C in your toolkit. You'll need to learn how to use some of
Unix's other languages (especially the scripting languages), and
how to be comfortable mixing multiple languages in specialist
roles within large program systems.

The Art of UNIX Programming, Raymond, 2004, page 322
Best wishes ... cheers, makyo


All times are GMT -5. The time now is 11:10 AM.