LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-19-2005, 12:14 AM   #1
my-unix-dream
Member
 
Registered: Jun 2004
Distribution: live cd
Posts: 87

Rep: Reputation: 15
Unhappy How to learn programming in linux


hello all,

i am totally computer newbie and donīt know anything about programming in any languages....

but i have enger to learn and interested in developing program.

please inform me about the way to get started ...is it differient between windows programming and unix ??

do i have to spend lot of money doing so.

thanks
 
Old 04-19-2005, 12:29 AM   #2
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
I would say start with basic C. If you have Linux you already have a C compiler.
Here's where I started... A CUJ magazine.
http://www.cuj.com/

Try ASM too. That's really fun!!!

KC
 
Old 04-19-2005, 01:55 AM   #3
Harmaa Kettu
Member
 
Registered: Apr 2005
Location: Finland
Posts: 196

Rep: Reputation: 30
Re: How to learn programming in linux

Here is a newbie-friendly tutorial. It uses java, but the basics are very similar in C or perl.

Quote:
...is it differient between windows programming and unix ??
Micro$oft tries to make it different by inventing their own "standards". You can ignore them and use cross-platform libraries like gtk and SDL instead.

Quote:
do i have to spend lot of money doing so.
No, all you need is a good text editor (like nedit, bluefish or setedit) and a compiler. Perl and gcc come with every Linux distro, and java SDK can be downloaded from http://blackdown.org/
 
Old 04-19-2005, 03:19 AM   #4
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Quote:
all you need is a good text editor
(like emacs )
Quote:
and a compiler
... or interpreter, should you choose an interpreted language.

I would suggest python (www.python.org) for a first programming language; it's *really* easy to learn, and usable in the real world too. Once you have an understanding about what programming is about, you will easily pick up any other language.

I think perl has too many arbitrary special cases (files have their own namespace, you can't assign a regex to a variable (afaik)). With C, you have to understand too many low-level details(*). Java is just too big.

(*) However, I recommend that once you've grasped python, you learn C asap. Most programs in GNU/Linux are written in either C or C++. Once you've learned C, learn C++ too. Good books:

How to think like a computer scientist (learning with python) (by FIXME--Probably not Guido van Rossum, the inventor)
The C Programming Language (by and aka `K&R' -- the inventors)
The C++ Programming Language (by Stroustrup -- the inventor)
The C++ Annotated Reference Manual (aka `ARM', by Stroustrup (iirc))

No matter what you choose for your editor and your language, I wish you luck & joy

--Jonas

PS. I'd also suggest that you at some point learn some basic bash scripting (see (maybe) Advanced Bash Scripting Guide). Enough to understand this at least:
for i in `seq 1 100`; do wget http://www.foo.com/bar$i.html; done

Last edited by jonaskoelker; 04-19-2005 at 03:25 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Learn linux programming under windows beep_beep Linux - Software 5 05-26-2005 07:12 AM
Best Way to Learn Linux Programming MrPeanut Linux - Newbie 2 07-20-2004 01:49 PM
want to learn programming but not sure where to start SurferRoxyChiq Programming 6 01-14-2004 12:08 PM
where i can i learn perl programming halovivek Programming 5 09-22-2003 11:33 AM
Want to learn programming. ddpicard Programming 3 11-09-2001 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration