Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

What to learn : Perl or Python
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  
Author Message
DippyGirl



Joined: Fri Oct 29, 2010 8:43 am
Posts: 6
Location: Where the sun always shines

PostPosted: Sun Oct 31, 2010 12:02 pm    Post subject: What to learn : Perl or Python Reply with quote

Hola - Newbie, please be gentle!
I am just discovering Linux, I want my PC to be more than a word processor and web browser, so I'm looking at various distros.
Currently, while I settle on my linux-of-choice, I am dual booting Ubuntu/Doze... Ubuntu install was a breeze.
Reason for post :
I want to learn a PC programming language. As a hobby not a job (been there done it dont like the timesheets)
Considering Perl and Python - leaning towards Perl (have discovered PerlMonks)

Any views on which direction to take, and maybe why...- including blind prejudice

I have a programming background on different platforms - assembler, various flavours of cobol and fortran, rexx.
So I am happy with compiling/scripting/syntax/layout differences.
Which ever I go for I will probably go back to the other one later on (as time permits)
If this is already covered in another thread just point me at it.
Thanks
Ciao
Back to top
View user's profile Send private message
Bazza
LXF regular


Joined: Sat Mar 21, 2009 11:16 am
Posts: 1477
Location: Loughborough

PostPosted: Sun Oct 31, 2010 6:38 pm    Post subject: Reply with quote

Hi DippyGirl...

I`m surprised no one else has come back yet, however...

Although powerful is a relative term you can do a lot with
a STANDARD Python install. Dependances for coding using
STANDARD Python are minimal... :)

Unlike PHP... :(

(Dunno about a Perl install though.)

No expert at Perl as I am a hobbyist coder too, AND, not a
very good one at that, but as you say you have a knowledge
of things even down at low, (assembly), level it won`t take
long to grasp the syntax of Python.

If you go for Python then start with Version 3.x NOT 2.x as
everything is shifting towards it...

My 5 pennoth FWIW. :)


EDIT:

BTW, "Doze" made me smile... ;o)
_________________
73...

Bazza, G0LCU...

Team AMIGA...
Back to top
View user's profile Send private message
bobthebob1234
LXF regular


Joined: Thu Jan 03, 2008 9:38 pm
Posts: 1369
Location: A hole in a field

PostPosted: Sun Oct 31, 2010 6:46 pm    Post subject: Reply with quote

learn everything!!
_________________
For certain you have to be lost to find the places that can't be found. Elseways, everyone would know where it was
Back to top
View user's profile Send private message
johnhudson
LXF regular


Joined: Wed Aug 03, 2005 2:37 pm
Posts: 871

PostPosted: Sun Oct 31, 2010 9:18 pm    Post subject: Reply with quote

Python is fine for a hobbyist and for a professional developer; you can start with something very simple and add modules as you become more confident.

Python is also used in a lot of Google interfaces because of its flexibility.
Back to top
View user's profile Send private message
leke
LXF regular


Joined: Mon Oct 22, 2007 6:45 pm
Posts: 503
Location: Oulu, Finland

PostPosted: Mon Nov 01, 2010 7:30 am    Post subject: Reply with quote

bobthebob1234 wrote:
learn everything!!
yeah, I second that. If you're saying it's for fun, you should play with both languages (and more). We would all be interested to hear your opinions of them too Smile
_________________
http://truecenterpublishing.com/zenstory/maybe.html
Back to top
View user's profile Send private message
Bazza
LXF regular


Joined: Sat Mar 21, 2009 11:16 am
Posts: 1477
Location: Loughborough

PostPosted: Wed Nov 03, 2010 3:36 pm    Post subject: Reply with quote

Hi leke...

When you reach bus pass age and beyond, it gets slightly more difficult
to learn everything... ;o)

Everything seems to start going wrong, sight, hearing, etc... :(
_________________
73...

Bazza, G0LCU...

Team AMIGA...
Back to top
View user's profile Send private message
leke
LXF regular


Joined: Mon Oct 22, 2007 6:45 pm
Posts: 503
Location: Oulu, Finland

PostPosted: Wed Nov 03, 2010 6:01 pm    Post subject: Reply with quote

Bazza wrote:
Hi leke...

When you reach bus pass age and beyond, it gets slightly more difficult
to learn everything... ;o)

Everything seems to start going wrong, sight, hearing, etc... Sad
I hope by the time I'm older, science will have cured all of those things Wink
_________________
http://truecenterpublishing.com/zenstory/maybe.html
Back to top
View user's profile Send private message
gwilymk



Joined: Wed Nov 10, 2010 5:50 pm
Posts: 2

PostPosted: Wed Nov 10, 2010 6:11 pm    Post subject: Ruby! Reply with quote

I personally get annoyed with how verbose python is so I tried ruby!

Although it is not perl or python, it is a scripting language and you get the amazing 'gem' command. Ruby's built in package manager.

And if your bored of writing applications, you can try 'rails'

Code:
sudo gem install rails
or
su -c 'gem install rails'

doesn't get easier Smile

Gwilym Kuiper[/quote]
Back to top
View user's profile Send private message
mokakan



Joined: Sun Apr 03, 2011 7:45 pm
Posts: 1

PostPosted: Sun Apr 03, 2011 7:48 pm    Post subject: php forever Reply with quote

neither perl nor python, i think php is the best
Back to top
View user's profile Send private message
RockDoctor



Joined: Sun Jul 10, 2011 10:04 pm
Posts: 2
Location: Minnesota, US

PostPosted: Sun Jul 10, 2011 10:39 pm    Post subject: Reply with quote

Although I'm sure that by now the OP has selected her language of choice, I thought I'd post my thoughts here because the question is certainly a FAQ. For hobby coding, my advice is to just pick a language that looks interesting and go for it. Looking over at my bookcase, I see (in order left to right, top shelf to bottom shelf) books covering: HTML, Java, Perl, XML, JavaScript, Python, PHP, PL/1 (my old college text), 6502 assembly, 8086 assembly, Forth, SQL, C, and C++. Hmm, I wonder where my Pascal book is. Laughing
Back to top
View user's profile Send private message
lok1950
LXF regular


Joined: Tue May 31, 2005 6:31 am
Posts: 1030
Location: Ottawa

PostPosted: Sun Jul 10, 2011 11:21 pm    Post subject: Reply with quote

Quote:
Hmm, I wonder where my Pascal book is.


In the recycling bin I hope Wink Though I still have a few Pascal books in boxes that I haven't looked at in ages with my old college texts for IBM 360 Assembly.And leke you may not learn everything but there is no harm in trying too Cool

Enjoy the Choice Smile
Back to top
View user's profile Send private message
Ram
LXF regular


Joined: Thu Apr 07, 2005 10:44 pm
Posts: 1674
Location: Guisborough

PostPosted: Mon Jul 11, 2011 12:55 pm    Post subject: Reply with quote

lok1950 wrote:
Quote:
Hmm, I wonder where my Pascal book is.


In the recycling bin I hope Wink Though I still have a few Pascal books in boxes that I haven't looked at in ages with my old college texts for IBM 360 Assembly.And leke you may not learn everything but there is no harm in trying too Cool

Enjoy the Choice Smile


Mine are still on the top shelf Wink aswell hiding in some cupboards.
_________________

lubuntu LXDE 13.10 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
Back to top
View user's profile Send private message MSN Messenger
Bazza
LXF regular


Joined: Sat Mar 21, 2009 11:16 am
Posts: 1477
Location: Loughborough

PostPosted: Mon Jul 11, 2011 2:32 pm    Post subject: Reply with quote

Which brings us to another POV for the OP...

Which languages should (S)he avoid then?

Lisp?
_________________
73...

Bazza, G0LCU...

Team AMIGA...
Back to top
View user's profile Send private message
lok1950
LXF regular


Joined: Tue May 31, 2005 6:31 am
Posts: 1030
Location: Ottawa

PostPosted: Mon Jul 11, 2011 3:34 pm    Post subject: Reply with quote

Lisp comes in handy if you use EMACS as then you can add extensions to it further blotting it's ego Laughing

Enjoy the Choice Smile
Back to top
View user's profile Send private message
evilnick
Moderator


Joined: Mon Apr 04, 2005 12:47 pm
Posts: 151
Location: LXF towers

PostPosted: Tue Jul 19, 2011 4:57 pm    Post subject: Reply with quote

I think there is a lot to be said in favour of many languages. Personally, the first language I learnt properly was Z80 assembly. Not very useful these days I grant you, but there was a certain discipline to assembly coding that I think has helped me a lot.

The language I wish I started with was C/C++. It might be a bit harder to grasp initially, especially tricky things with pointers and such, but really manages to bring together all of the central ideas about programming into one relatively clean and efficient language. The big problem is that it is difficult to learn by example, because if you look at real, working C code it can appear to be so much gibberish, even when you have an idea what is going on.

I think modern Perl and Python both solve this problem very well - Python is really easy to read as well as write, and does have a lot of commercial potential too.

There aren't any languages I wish I had never learned, but Algol and COBOL weren't really much use to me (thanks University of Surrey for making me learn them). I do have a sneaky kind of affection for FORTRAN, but I think that is mainly nostalgic.

Nobody seems to have mentioned Java either. While it may not be as fashionable as it was, it is still a powerful and useful language, if.you.dont.mind.a.lot.of.typing
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast