LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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

Reply
 
Search this Thread
Old 11-04-2008, 04:04 PM   #1
mannclay
Member
 
Registered: Nov 2007
Location: Brooklyn, NY
Distribution: eeeMint
Posts: 52

Rep: Reputation: 15
intersted in learning Python as a first programming language


Curious to hear of success stories using Python as a first programming language and wondering if it not a good practice to do procedural after oop languages.

I started with C a month ago and picked up a lot but I do not think its the way I should continue since I want to get small freelance work on top of other freelance work that I do and I don't see a market for a fledgling C programmer.

Please tell me what you think!
 
Old 11-04-2008, 05:08 PM   #2
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
Depends what you want to do as a freelancer, I guess.

In terms of business application, here are the TIOBE results for various programming languages:

http://www.tiobe.com/index.php/conte...pci/index.html

Python does look great as a first time programming language. In universities, the current trend is to use Java as the introductory programming language.
 
Old 11-04-2008, 10:33 PM   #3
mannclay
Member
 
Registered: Nov 2007
Location: Brooklyn, NY
Distribution: eeeMint
Posts: 52

Original Poster
Rep: Reputation: 15
well, I work as a moving light tech/op which has nothing to do with computer programming. But my interest in computer programming now surpasses my "day job". Does anyone have the O'Reilly python pocket reference? it seems that its agood book to carry around and read often while on commute.

Last edited by mannclay; 11-05-2008 at 12:26 AM.
 
Old 11-05-2008, 12:54 PM   #4
mannclay
Member
 
Registered: Nov 2007
Location: Brooklyn, NY
Distribution: eeeMint
Posts: 52

Original Poster
Rep: Reputation: 15
i think i will pursue python as a first language... thanks
 
Old 11-05-2008, 02:04 PM   #5
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 452Reputation: 452Reputation: 452Reputation: 452Reputation: 452
In an old fashioned manner I would suggest to start from a language that does _not_ push OOP paradigm deep down into you throat.

I saw too much trouble caused by wrong usage of OOP concepts, and the root cause was lack of knowledge of when and how much OOP can cost.
 
Old 11-05-2008, 02:26 PM   #6
mannclay
Member
 
Registered: Nov 2007
Location: Brooklyn, NY
Distribution: eeeMint
Posts: 52

Original Poster
Rep: Reputation: 15
But I thought Python does not push oop but its one of various choices on how to solve a problem??

Plus, since I have no exp whatsoever, save for as a savvy computer user, I thought it would be useful to start out with a 'glue' language that can utilize pre-built components to solve problems.

A language that can get me some coding work possibly faster than C (I began with C as a first language a month ago) and still be capable of not ending up coding between HTML tags which is what I am not really interested in.

One language that can get me quick exp.
 
Old 11-05-2008, 03:25 PM   #7
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 452Reputation: 452Reputation: 452Reputation: 452Reputation: 452
Quote:
Originally Posted by mannclay View Post
But I thought Python does not push oop but its one of various choices on how to solve a problem??

Plus, since I have no exp whatsoever, save for as a savvy computer user, I thought it would be useful to start out with a 'glue' language that can utilize pre-built components to solve problems.

A language that can get me some coding work possibly faster than C (I began with C as a first language a month ago) and still be capable of not ending up coding between HTML tags which is what I am not really interested in.

One language that can get me quick exp.
Python is very much based on the "everything is an object" idea.

I.e. practically always one can write foo.print.

I suggest to read http://www.perl.com/lpt/a/997 - and leave aside Perl6
propaganda, even though I am very much a Perl guy. A very interesting overview of modern languages.

The language that fascinates me currently is OCaml, by the way, but I do not have time to seriously start dealing with it.

First of all, OCaml has a strong and well defined functional part, and I got ready for a functional part through Perl.

Second, OCaml is strictly typed, but types by default are inferred, so often you do not have to declare them.

Third, if you wish, there is a well defined imperative (procedural) part.

Fourth, there is a well defined OOP part.

The last, but not least - performance. Second after "C".
 
Old 11-05-2008, 03:52 PM   #8
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
Python can be implemented as an object-oriented (ala java), imperative (ala C), or functional (ala scheme or Ocaml) programming language:

http://en.wikipedia.org/wiki/Python_...mming_language)

Last edited by ehawk; 11-05-2008 at 03:57 PM.
 
Old 11-05-2008, 03:59 PM   #9
mannclay
Member
 
Registered: Nov 2007
Location: Brooklyn, NY
Distribution: eeeMint
Posts: 52

Original Poster
Rep: Reputation: 15
yeah... I've gotten pretty exited about python knowing that still for me, later down the road, i can learning C to write device drivers or at least read the Linux kernel clearly. But python is becoming very tasty. Is there a market for fledgling python coders?? You know, taken under someone's wing??
 
Old 11-05-2008, 04:03 PM   #10
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
Python is popular because of its readability, which makes it easier to understand other's code, as well as its extensive library to do many things quickly. Many people think it makes them more productive than other languages. The philosophy is that for any given task there is one preferred, simplest way to do it, and that everyone should do it that way.
 
Old 11-05-2008, 04:19 PM   #11
mannclay
Member
 
Registered: Nov 2007
Location: Brooklyn, NY
Distribution: eeeMint
Posts: 52

Original Poster
Rep: Reputation: 15
ooh... sounds constraining. But if it gets the job done, then good.

Do you use Python?

Do you prefer it to other languages and can anyone offer me a good approach to get coding exp?
 
Old 11-05-2008, 04:34 PM   #12
ceantuco
Member
 
Registered: Mar 2008
Location: New Jersey
Distribution: CentOS, Debian, Mint, Backtrack, OpenSuse
Posts: 564

Rep: Reputation: 36
I just downloaded and printed Python's tutorial... I will start to play around with it soon! It looks good but I have no programming experience what so ever!
 
Old 11-05-2008, 04:54 PM   #13
mannclay
Member
 
Registered: Nov 2007
Location: Brooklyn, NY
Distribution: eeeMint
Posts: 52

Original Poster
Rep: Reputation: 15
wow cool. Me too... got the Learning Python book.

Why did you choose Python??
 
Old 11-05-2008, 08:50 PM   #14
mannclay
Member
 
Registered: Nov 2007
Location: Brooklyn, NY
Distribution: eeeMint
Posts: 52

Original Poster
Rep: Reputation: 15
Is there an argument between clumps of code seen as objects and the procedural approach in regard to Python vs C...??
 
Old 11-06-2008, 03:53 AM   #15
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 452Reputation: 452Reputation: 452Reputation: 452Reputation: 452
Quote:
Originally Posted by mannclay View Post
ooh... sounds constraining. But if it gets the job done, then good.

Do you use Python?

Do you prefer it to other languages and can anyone offer me a good approach to get coding exp?
I would recommend Lua - very elegant IMO.
 
  


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
Learning AWK language: BadBoy1954 Programming 6 09-18-2008 01:05 PM
learning a foreign language using linux fisher99 Slackware 2 05-20-2003 10:27 PM
Is Python a good language to learn for a newbie to programming? prophet621 Programming 2 05-19-2003 03:48 PM
Try Python, O'reilly Learning Python haknot Programming 5 02-15-2002 08:27 AM


All times are GMT -5. The time now is 08:05 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