LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-11-2011, 11:02 AM   #1
wagscat123
Member
 
Registered: Jan 2009
Location: Maryland-Pennsylvania border, USA
Distribution: openSUSE 15.2/15.3, Tumbleweed, Kubuntu 18.04/21.04, macOS 10.15, antiX 19, and Linux Mint 19.3
Posts: 860
Blog Entries: 45

Rep: Reputation: 120Reputation: 120
Start programming


Hello,

I have never programmed before, and I'd like to start right with Linux. Are there any avalible resources I can use to learn how-to and get started?
 
Old 08-11-2011, 11:08 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
There are literally thousands of tutorials and books out there for any given programming language. Do you have a specific language in mind? I personally think that Python may be a good start for beginners, it is easy to understand and can do everything you want.
 
1 members found this post helpful.
Old 08-11-2011, 11:08 AM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Are there any particular languages you're interested in? What kind of programming are we talking about? Do you want to write system scripts, kernel, stand-alone applications or web applications? Generally, what are you trying to achieve? Your question is VERY, VERY, VERY vague and unless you give us more details, it'll be hard to help you.
 
1 members found this post helpful.
Old 08-11-2011, 12:34 PM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
I would recommend C, C++, or Python, depending on what you want to do.

Both C and C++ are very low-level, you have to manually manage memory and you can access bytes in memory directly. C++ is basically C with more features, most notably classes (https://secure.wikimedia.org/wikiped...programming%29).

Python is a high-level language, it does all the memory management for you, and you can't manipulate memory directly. It's easier and more convenient to use and learn, but it won't teach you all the low-level details that C or C++ will.
 
1 members found this post helpful.
Old 08-11-2011, 01:44 PM   #5
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by wagscat123
I have never programmed before, and I'd like to start right with Linux. Are there any avalible resources I can use to learn how-to and get started?
As for "learning how to program", I recommend either Python or Perl. They're both widely used, and are easy enough to learn using freely available (online and your local library) resources. And they both make it simple to perform simple tasks. Believe it or not, many languages are not so merciful.

Since your choice would be arbitrary (or perhaps based on which name sounds cooler), I'm going to recommend Perl for you. Why? Because it's my language du jour. If you'd asked me twelve months ago, it would have been something else.

Once you've gotten the hang of programming (in any language), there is a big world to explore out there. You'll want to learn Bourne shell and C. But you need to establish a reasonable foundation first.
 
Old 08-11-2011, 01:56 PM   #6
pjk1939
Member
 
Registered: Jul 2011
Distribution: Arch Linux
Posts: 36

Rep: Reputation: 1
I personally would suggest learning python as a first language. It's syntax is very easy and simplfied, so you can actually learn how to program over learning the syntax of a specific language. Plus it makes you indent which is a great habit to start with.

I had a hard time understanding C pointers and the lower level aspects at first. So starting with python should make programming seem less crazy IMO.

After working with python and learning what programming is like, I would move to C; You can learn the lower level memory management.
 
Old 08-11-2011, 03:21 PM   #7
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Formally there are several classes of programming languages. It is not easy to pass from a class to another class. Also languages are divided into interpreted and compiled (say so). If you are thinking about numbers, arrays, records - then in fact you are in class of languages with data types - procedural languagues where building blocks are data types, variables and procedures - say C or Pascal. If you forget about data types and think about objects and methods - this is an objective programming - to this class of languages belongs eg. C++ (some people treat C++ as a some kind of an extension of C - which is a complete misunderstanding). There are other more strange languages like LISP (a freetype language) or Prolog (logic programming) or Haskell (functional programming). There are languages created for very particular applications - say Fortran - created for scientific computations.
The choice is always yours. So before choosing anything try to find an introduction to a concept of a computer programming - what is it all about - why there are so many languages - which is better.
 
1 members found this post helpful.
Old 08-12-2011, 09:35 AM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Quote:
Originally Posted by wagscat123 View Post
Hello,

I have never programmed before, and I'd like to start right with Linux. Are there any avalible resources I can use to learn how-to and get started?
You can look at Programming General & WEB to get several links to help.

Linux Books & Online Magazines has loads of useful free online links for books that will enlighten.

Advanced Linux Programming book takes a tutorial approach, introducing the most important programming concepts and techniques, and providing examples of how to use them. The book is not intended for beginners, and readers are expected to be competent with the C programming language and C library functions. But can be useful once you have started.

Plus Free GNU/Linux Books and Free Linux Books are highest quality Linux books all of which are available for free download.

LINUX: Rute User's Tutorial and Exposition is a technical reference and teaching tool for new GNU/Linux users as well as advanced administrators. It provides concise, thorough explanations and practical examples of each aspect of a Linux system. Very useful!

Tutorials section has several links for helpful tutorials.

Many newbies really do not see the benefit of learning script. You can develop most application needs with good script programming. That can sometimes lead into development of advanced level programming from the script model. While at times the script tool itself will suffice. You would be surprised as to the usefulness of developing a application via script language that meets the needs for applications without the use of higher level languages. Linux Shell Scripting Tutorial - A Beginner's handbook would be a good starting point. Plus look at items 4,5 & 6 below.

This can lead into learning good techniques that will enhance your abilities to learn other programming methodologies and languages.

Look at LDP for useful information. You will find a load of information from LDP since it is document central for Linux.

Do not forget about Virtualization since it can be used as a safe environment to develop within. A VM will allow you to experiment without the worry of damage to the host system when the client is properly setup. You can play within the sandbox without worry.

Just a few links to aid you to gaining some understanding;



1 Linux Documentation Project
2 Rute Tutorial & Exposition
3 Linux Command Guide
4 Bash Beginners Guide
5 Bash Reference Manual
6 Advanced Bash-Scripting Guide
7 Linux Newbie Admin Guide
8 LinuxSelfHelp
9 Utimate Linux Newbie Guide
10 Linux Home Networking
11 Virtualization- Top 10

The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!
 
Old 08-12-2011, 09:46 AM   #9
wagscat123
Member
 
Registered: Jan 2009
Location: Maryland-Pennsylvania border, USA
Distribution: openSUSE 15.2/15.3, Tumbleweed, Kubuntu 18.04/21.04, macOS 10.15, antiX 19, and Linux Mint 19.3
Posts: 860

Original Poster
Blog Entries: 45

Rep: Reputation: 120Reputation: 120
What is GTK+ programs

I want to try to write code for Gtk+ applications specifically. I've learned some extreme basics of using the graphical Glade to make basic buttons and text that do nothing and compiled source code, but that's about it.
 
Old 08-12-2011, 09:54 AM   #10
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Big cloud, small rain. OK! If the buttons on a desktop is this what you want then maybe try this
http://inux.pte.hu/~pipas/gtkdialog/
I've got this. It's nice and funny.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to start the programming? kataks Programming 2 12-21-2010 03:32 AM
Where to start with programming mohitdaksh Programming 7 01-01-2010 08:20 PM
Where to start with programming?? suicideducky Programming 4 09-18-2006 02:20 AM
When and why did you start programming? BBB Programming 33 01-17-2005 04:29 PM
I want to start programming, need help though... Eits0 Programming 8 05-16-2002 08:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:12 PM.

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
Open Source Consulting | Domain Registration