LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 03-27-2003, 05:09 PM   #1
Tenover
Member
 
Registered: Mar 2003
Posts: 123

Rep: Reputation: 15
Want to learn to Program


Hi guys,
I've been lurking around this forum for a while and it seems REALLY helpful. I'm *pretty much* a newbie at Linux. Been messing with it for 2 or 3 years off and on. My question is:
I want to learn a little programming, but I'm not sure what language to learn?? I want something that I can learn by myself, and something that might be helpful in the future when it comes to job searching.....I have a couple of the O'Reilly "Learning Perl" books, is that a good one? I appreciate any suggestions or advice....
 
Old 03-27-2003, 05:16 PM   #2
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
'Learn how to program, not just how to use a language'
I like python, an added bonus is that clean layout is vital (and becomes habit-Good Thing), as there are no {} brackets to define code sections
 
Old 03-27-2003, 05:19 PM   #3
joesbox
Member
 
Registered: Feb 2003
Location: hampton va
Distribution: ubuntu
Posts: 502

Rep: Reputation: 30
O'Reilly is a good source for knowledge but when first learning perl I started with Perl and CGI for the World Wide Web. This started me off and I am able to create programs for my computer and have a general knowledge of it to help others when asked. I also have a pdf of all of the O'Reilly books on Perl as a second reference.
 
Old 03-27-2003, 05:25 PM   #4
acid2000
Member
 
Registered: Nov 2001
Location: Exeter, UK
Distribution: Gentoo 1.4
Posts: 243

Rep: Reputation: 30
Learn, C, Java and perl. That may most langauges will be easy from then on.
 
Old 03-27-2003, 06:36 PM   #5
Dave Skywatcher
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 127

Rep: Reputation: 16
What's just as important as what you start with is what you don't start with. (Visual) Basic, Pascal, or Ada can teach you some bad programming habits, and as someone whose first language was Basic, I can attest that those habits can be very hard to overcome. I don't recommend Perl as a first language either, even though it is a great language. The reason is that Perl is so flexible, and allows you to do things so many different ways, that once again bad programming habits can creep without you realizing it.

I have to agree with quite a lot of other people that Python is a great language for beginning programmers to learn. Java is also a good choice, particularly for learning how object-oriented programming works, though it's a little more difficult than Python. C/C++ should probably wait until later, since they can be more frustrating to a new programmer; don't jump right in on them just because someone says they're more powerful. Python and Java are both wonderful, very capable languages. They're not "beginner's languages" just because they're easy to learn -- they are very powerful, and will enable you to do just about any kind of programming you can imagine except very low-level stuff (kernels, drivers) and heavy-duty graphics work. There's also a huge community of enthusiastic people around Python in particular, so help is never far away.
 
Old 03-28-2003, 08:16 AM   #6
Tonbo
LQ Newbie
 
Registered: Mar 2003
Location: I live behind the code
Distribution: RedHat 7.3 until recompile
Posts: 3

Rep: Reputation: 0
Hey, Tenover:

Here are a couple of things that might help you out......

If you are hell-bent on learning perl (a good choice, btw!), head on over to http://perl.about.com and go digging around through there. You can get a number of good "newbie" tutorials. You can also send an email to the guide (top left on the page), who can set you up with an eleven-week email course that will help immensely.

Python is also a good choice, and PHP/MySQL has some real benefits as well. One of the major benefits of all of these languages is that they are *free*, and there is a wealth of information out there on them. MySQL will help you get your foot in the door of SQL.....from there, you can do all kinds of things! Get one or more of these languages under you, add in the database end (MySQL/SQL), and I think you will be hopelessly addicted...

Probably the best advice that I can give you is to play like a madman. Code as much as you can when you are starting out. Start with the typical "Hello World", and go from there. Don't be afraid to make mistakes.....they will help you learn. Oh, and unless you love living dangerously, don't be doing all of your testing on your work's production server.....hehe

Good luck to you, and may you find success in your goal of becoming a code monkey!

Peace--

I know that reference is in here somewhere......
 
Old 03-28-2003, 08:45 AM   #7
mhearn
Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 47
Actually, one good way to learn to program in a new language is to find a piece of interesting open source software, and start playing with it. Just start by changing the titlebar caption or something to get used to modifying the source, the build system etc. Then move onto hacking on other features. That's how I taught myself C (but i already knew programming of course, so you might want a good book as well).

Linux is great for that, you have all the tools and docs already installed
 
Old 03-28-2003, 09:49 AM   #8
Steve Cronje
Member
 
Registered: Jan 2003
Location: Canada
Distribution: Ubuntu, Mepis, Debian
Posts: 158

Rep: Reputation: 30
Quote:
Originally posted by mhearn
Actually, one good way to learn to program in a new language is to find a piece of interesting open source software, and start playing with it.
Good advice, IMHO

Another way is to choose a language, ANY language, and write a small and simple program with it, say, a program to show a calendar, or a conversion program.

That will give you a feel for things, and as you search for answers to the problems that will crop up, you will learn about other languages as well.

HTH
Steve
 
Old 03-28-2003, 10:04 AM   #9
Tenover
Member
 
Registered: Mar 2003
Posts: 123

Original Poster
Rep: Reputation: 15
Thanks!

Thanks for all the reposnses....Regarding Python, can I download that or does it come installed with RedHat 8.0? Sounds like a good one. Just what I need, something ELSE to do late at night
 
Old 03-28-2003, 10:10 AM   #10
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,694

Rep: Reputation: 45
you can download it at www.python.org but you should already have it.

Last edited by rshaw; 03-28-2003 at 10:11 AM.
 
Old 03-28-2003, 10:21 AM   #11
jetfreggel
Member
 
Registered: May 2002
Posts: 172

Rep: Reputation: 30
try shell scripting
gives you a good look at programming techniques
and then you can advance to c/c++/java/ or any other stuff
and you can use shell scripting in your day to day linux bases
 
Old 03-28-2003, 01:34 PM   #12
mhearn
Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 47
python is already installed on redhat 8, it's used for their config programs.
 
Old 03-28-2003, 01:44 PM   #13
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Definately go with Python and use wxPython for making GUIs, great fun
 
Old 03-28-2003, 02:38 PM   #14
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,379

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
personally i would not recommend python. it's a great language, but is much more unique that most othes. it's the only language that made me really laugh at it's cleverness recently, but it's much more worthwhile learning a more conventional language like c/c++/java, even perl is pretty standard, but when concepts such as self documentation are taught as core features it's a bit of a headfsck, and won't make transitions to other languages too easy.
 
  


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 English with a C program cigarstub Programming 1 09-20-2005 11:53 AM
i want to learn to program... trey85stang Programming 13 01-07-2005 01:22 PM
What book(s) should I read to learn how to write a program for the visually impaired? Dreamcast Linux - Newbie 7 08-23-2004 01:32 AM
What useful [to a pleb] program would be a good starter to download and learn to comp Frybyte Linux - Software 5 05-18-2004 07:32 PM
any programmers who had to fight hard to learn to program? Flotilla Programming 14 01-21-2003 06:49 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration