Programming This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
02-20-2012, 02:25 PM
|
#1
|
|
Member
Registered: Feb 2012
Posts: 41
Rep: 
|
What programming languages are easy for beginners
Hi,
I am thinking of learning programming for personal enrichment.
I know bash scripting but I want add another program language to my geek knowledge.
I appreciate any feedback.
|
|
|
|
02-20-2012, 02:33 PM
|
#2
|
|
Member
Registered: Nov 2011
Location: Germany, Bavaria, Nueremberg area
Distribution: openSUSE, Debian, LFS
Posts: 205
Rep:
|
I would recommend python.
An elegant easy syntax, "batteries included" which means there is for each and everything a module already done.
Writing a functional TCPserver is just about 10 lines using framework twister for instance.
It exists for a long time and is therefor stable.
You can write cross platform, as python is available on nearly every OS
And there are bindings for a lot of C libs.
In fact oneself can easily bind C or C++ libs.
With all that said, it is clear, that you can write GUIs for all major GUI Systems as well.
Some of the language constructs are so highly developed that they are faster, than coded in C.
Last edited by uhelp; 02-20-2012 at 02:34 PM.
|
|
|
|
02-20-2012, 02:39 PM
|
#3
|
|
Member
Registered: Feb 2012
Posts: 41
Original Poster
Rep: 
|
thanks uhelp
Can python have linux commands or execute linux programs from the python script like bach scripting does?
|
|
|
|
02-20-2012, 02:41 PM
|
#4
|
|
Member
Registered: Nov 2011
Location: Germany, Bavaria, Nueremberg area
Distribution: openSUSE, Debian, LFS
Posts: 205
Rep:
|
yes, it can.
Including process management and whatever you might come across.
But if you learned it for a little while, you will prefer writing them in python on your own.
Python is already installed at your machine.
And here is a free online book you can start with.
Last edited by uhelp; 02-20-2012 at 02:46 PM.
|
|
|
|
02-20-2012, 02:45 PM
|
#5
|
|
Member
Registered: Feb 2012
Posts: 41
Original Poster
Rep: 
|
Thanks again uhelp. Your comments were helpful and added +1 rep for you.
the link above is a foreign language.
Last edited by Geek255; 02-20-2012 at 02:49 PM.
|
|
|
|
02-20-2012, 02:50 PM
|
#6
|
|
Senior Member
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 3,693
|
Python is a good recommendation.
Here's a fun set of tutorials for another one:
http://cdsmith.wordpress.com/2011/08...r-kids-week-1/
Last edited by dugan; 02-20-2012 at 02:54 PM.
|
|
|
|
02-20-2012, 03:09 PM
|
#7
|
|
Member
Registered: Nov 2011
Location: Germany, Bavaria, Nueremberg area
Distribution: openSUSE, Debian, LFS
Posts: 205
Rep:
|
Quote:
Originally Posted by Geek255
the link above is a foreign language.
|
Sorry. I didn't even think about that.
I don't even know what i am reading in German or English when it comes to computer books.
In fact it is a German publisher....
But there are loads of tutorials out there.
Check python.org
And thanks for reputation point.
|
|
|
|
02-20-2012, 03:45 PM
|
#8
|
|
Member
Registered: Feb 2012
Posts: 41
Original Poster
Rep: 
|
Quote:
Originally Posted by dugan
|
Never heard of Haskell. Actually, I was seeking advice on these common languages like python, perl, ruby, java, c/c++ and wanted to know which one of these is the easiest to learn. Thanks for the link though 
Last edited by Geek255; 02-20-2012 at 03:46 PM.
|
|
|
|
02-20-2012, 04:04 PM
|
#9
|
|
Senior Member
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140
|
All programming languages seem easy once you practice a little and succeed to acheive what you want to do
The complexity comes from the application imho
|
|
|
|
02-20-2012, 04:11 PM
|
#10
|
|
Member
Registered: Nov 2011
Location: Germany, Bavaria, Nueremberg area
Distribution: openSUSE, Debian, LFS
Posts: 205
Rep:
|
Quote:
Originally Posted by Cedrik
All programming languages seem easy once you practice a little and succeed to acheive what you want to do
The complexity comes from the application imho
|
You are right.
If you practice.
Nevertheless learning C or C++ takes much more longer, than python.
Python honors learning by fast and astonishing results.
|
|
|
|
02-20-2012, 04:12 PM
|
#11
|
|
Member
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 229
Rep: 
|
Another vote for Python.
Here's free online book for beginners: http://learnpythonthehardway.org/
|
|
|
|
02-20-2012, 04:55 PM
|
#12
|
|
Member
Registered: Feb 2012
Posts: 41
Original Poster
Rep: 
|
Quote:
Originally Posted by audriusk
|
Thanks 
|
|
|
|
02-21-2012, 03:59 AM
|
#13
|
|
Member
Registered: Dec 2010
Posts: 185
Rep:
|
Bash
From absolutely no experience to a bit of know how I recommend this tutorial:
http://linuxconfig.org/Bash_scripting_Tutorial
It is fantastic for beginners.
(i) Just copy the code your first run through. Do not worry about retention.
(ii) Then go back a second time and try to do what you can from memory.What you can't remember, do again.
(iii) Then go back a third time and riff on the questions and answers. Change the variables, the questions, the outputs.
From these 18 problems you will have the know how to be able to begin tackling any language.
Bash is a command-line interpreter, or scripting language, for the Linux shell, and so covers the elementary attributes of programming while also introducing you to your Linux shell a bit more.
I agree with the above: Python is an excellent next step.
All languages are basically the same. Their application, execution, and syntax differ. So learning these is the real goal.
Much like verbal language. We all use verbs, nouns, tense and the like, though some use them differently: gender, participles, gerunds.
Programming is the same. All languages use logic in the form of if statements, loops, and input output calls.
Complexity of the program can remain the same, but the complexity of the Syntax grows down dramatically.
A simplified hierarchy of helpful terminology:
High level:
Interpreter
Python
Code:
#!/usr/bin/env python3
w="World"
print("Hello,",w)
Low level:
Compiled
C
Code:
#include <stdio.h>
int main()
{
char *w;
w="World";
printf("Hello, %s\n",w);
return 0;
}
Machine Code:
Assembly
Unix Assembly
Code:
section .text
global _start
_start:
mov edx,len
mov ecx,msg
mov ebx,1
mov eax,4
int 0x80
mov eax,1
int 0x80
section .data
msg db 'Hello, world!',0xa
len equ $ - msg
Last edited by cin_; 02-21-2012 at 04:09 AM.
Reason: gramm`err
|
|
|
|
02-21-2012, 04:41 AM
|
#14
|
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian Squeeze (server), Slackware 13.37 (netbook), Slackware64 14.0 (desktop),
Posts: 8,367
|
@Geek255: do you only want the language to be easy to learn or are you also interested in how useful it would be to know afterwards, availability of Integrated Development Environments (IDEs), areas of applicability ... ?
If it's only "easy to learn" then DOS .BAT would be a primary candidate because the language is so small and simple.
|
|
|
|
02-21-2012, 06:56 AM
|
#15
|
|
Senior Member
Registered: Dec 2008
Location: Gurgaon, India
Distribution: OpenSUSE 11.4
Posts: 4,582
|
Quote:
Originally Posted by Geek255
I want add another program language to my geek knowledge.
|
May I ask you to list out the TYPES of softwares that you would love to
build?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:44 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|