LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-06-2008, 03:58 AM   #16
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454

Quote:
Originally Posted by mannclay View Post
Is there an argument between clumps of code seen as objects and the procedural approach in regard to Python vs C...??
The argument is that if you use OOP blindly, you typically have bloat since your objects have data (and maybe code) you don't need.

Also, in OOP data access it typically through yet another pointer/reference which degrades performance.

If we are talking about learning, the best thing would be to study, say, four/five languages simultaneously:
  1. an assembly one;
  2. "C";
  3. C++;
  4. Perl/Python/Ruby/Lua;
  5. OCaml/Haskell/LISP

- then you'll know what it's all about.
 
Old 11-06-2008, 04:29 AM   #17
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by Sergei Steshenko View Post
If we are talking about learning, the best thing would be to study, say, four/five languages simultaneously:
- then you'll know what it's all about.
Whoa ...
Nope - then you'd be so bloody confused you'd give up even thinking of a career in programming.

A learner trying to impress by the breadth of their "knowledge" ain't going to fool anyone. Personally I reckon Python would be a fine introduction - easy to understand and get into.
I picked it up a few weeks back and like it for what I wanted it for - a bit of quick GUI prototyping.

Which language is "best" usually degenerates into more of a religious war than a technical assessment.
 
Old 11-06-2008, 05:49 AM   #18
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by syg00 View Post
Whoa ...
Nope - then you'd be so bloody confused you'd give up even thinking of a career in programming.
...
I disagree.

In the, say, 19-th century kids in wealthy families were taught several foreign languages simultaneously.

Looking back at my experience learning both computer and foreign languages I'd say the most difficult thing was paradigm shift.

That's why I suggest to learn a number of different paradigms simultaneously, so from the very beginning there will be an understanding that there is more than one way to do it, and understanding of (dis)advantages of the existing ways.
 
Old 11-06-2008, 07:31 AM   #19
mannclay
Member
 
Registered: Nov 2007
Location: Brooklyn, NY
Distribution: eeeMint
Posts: 52

Original Poster
Rep: Reputation: 15
This is fantastic!

My problem has been to find the language that I can take on full throttle. (C, Python...)
But what has happened is that I waffle across C, Python and Bash shell.
It would amazing if I can continue to waffle and still get things done. since I'm teaching myself, the problem becomes one of structure.
In January, I plan to take computer repair class. The maybe a C/C++ class for structure.
Can it be possible to find similarities between learning many languages at an early age and computer languages at first try??
 
Old 11-06-2008, 08:47 AM   #20
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by mannclay View Post
This is fantastic!

My problem has been to find the language that I can take on full throttle. (C, Python...)
But what has happened is that I waffle across C, Python and Bash shell.
It would amazing if I can continue to waffle and still get things done. since I'm teaching myself, the problem becomes one of structure.
In January, I plan to take computer repair class. The maybe a C/C++ class for structure.
Can it be possible to find similarities between learning many languages at an early age and computer languages at first try??
I guess the highlighted in bold is what I claim - learn languages in parallel and try to understand (dis)advantages of all of them and of the approaches used in them.

...

I mentioned Lua - even though I don't program in it, seems to be elegant and simple, and seems to respect the Occam's razor.
 
Old 11-06-2008, 08:53 AM   #21
mannclay
Member
 
Registered: Nov 2007
Location: Brooklyn, NY
Distribution: eeeMint
Posts: 52

Original Poster
Rep: Reputation: 15
Well, then you influenced me.
Im looking at Lua now and it seems fun and I'm a big fan of the Occam's razor in other areas.
Thanks!

Although, is Lua used as a stand alone language rather than used for programmers of other langauges?

Last edited by mannclay; 11-06-2008 at 09:17 AM.
 
Old 11-07-2008, 11:21 AM   #22
mannclay
Member
 
Registered: Nov 2007
Location: Brooklyn, NY
Distribution: eeeMint
Posts: 52

Original Poster
Rep: Reputation: 15
Cant find a good Lua tutorial or video!!! anyone can help?
 
Old 11-07-2008, 01:15 PM   #23
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by mannclay View Post
Cant find a good Lua tutorial or video!!! anyone can help?
???

http://lua-users.org/wiki/TutorialDirectory
 
Old 11-07-2008, 01:43 PM   #24
mannclay
Member
 
Registered: Nov 2007
Location: Brooklyn, NY
Distribution: eeeMint
Posts: 52

Original Poster
Rep: Reputation: 15
doing too many things at once... that one skipped me!
 
Old 11-07-2008, 02:35 PM   #25
ceantuco
Member
 
Registered: Mar 2008
Location: New York
Distribution: Debian
Posts: 809

Rep: Reputation: 88
Smile

Quote:
Originally Posted by mannclay View Post
wow cool. Me too... got the Learning Python book.

Why did you choose Python??
to be honest with you I don't know! lol I installed VB6 on my windows machine but I got bored of it... then I was re-searching for a good programming language for a beginner and I found Python... I created a few small programs (really small) lol but I'm liking it! again I have NO programming experience at all! wish me luck!

type 'hello world'

hello world

lol
 
Old 11-07-2008, 09:25 PM   #26
mannclay
Member
 
Registered: Nov 2007
Location: Brooklyn, NY
Distribution: eeeMint
Posts: 52

Original Poster
Rep: Reputation: 15
yeah, man good luck!

I'm stuck with the hots for C (maybe Python). And as a self-teacher, I have no idea what to do with it once I'm proficient enough..

Write a whole new OS?? Maybe work on minix??? hehehe...

Last edited by mannclay; 11-08-2008 at 10:34 AM.
 
Old 11-08-2008, 02:47 AM   #27
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by mannclay View Post
This is fantastic!

My problem has been to find the language that I can take on full throttle. (C, Python...)
But what has happened is that I waffle across C, Python and Bash shell.
It would amazing if I can continue to waffle and still get things done. since I'm teaching myself, the problem becomes one of structure.
In January, I plan to take computer repair class. The maybe a C/C++ class for structure.
Can it be possible to find similarities between learning many languages at an early age and computer languages at first try??
i suggest you take it one step at a time. Give Python a try. After learning the basics, get more in depth. I don't recommend learning a few programming languages simultaneously.
 
Old 11-08-2008, 10:12 AM   #28
makyo
Member
 
Registered: Aug 2006
Location: Saint Paul, MN, USA
Distribution: {Free,Open}BSD, CentOS, Debian, Fedora, Solaris, SuSE
Posts: 735

Rep: Reputation: 76
Hi, Sergei.
Quote:
Originally Posted by Sergei Steshenko View Post
... learn languages in parallel and try to understand (dis)advantages of all of them and of the approaches used in them.
There are some implications of this. I'm with ghostdog74 -- I don't think I could do this, because I am one of those who needs to concentrate on one thing:
Quote:
Mindfulness requires a change in attitude. The joy is not in finishing an activity - the joy is in doing it. Those of you who are Type A's will find that this is completely foreign to your usual way of perceiving things. Remember that Type A's tend to engage in polyphasic behaviors - they try to do several things simultaneously. The reality of thinking and doing, however, is that we can only think or do one thing at a time. The mind can dart back and forth between several things, but it can hold only one thing in full focus. Polyphasic thinking, therefore, actually wastes time. It also creates enormous stress.

-- excerpt from http://www.intouchmag.com/Mindfulness.html
On the other hand, this is similar to syntopical reading:
Quote:
Syntopical reading is the touchstone of scholarship and is the most important type of reading for a serious reader. Adler says, "Knowing that more than one book is relevant to a particular question is the first requirement in any project of syntopical reading. Knowing which books should be read, in a general way, is the second requirement." Learning to satisfy the second requirement is a key to one's personal development as a reader and scholar.

-- excerpt from http://www.doyletics.com/art/htrabart.htm
Apologies for the off-topic injection. If this seems worthwhile discussing, we can begin a new thread ... cheers, makyo
 
Old 11-08-2008, 11:11 AM   #29
ceantuco
Member
 
Registered: Mar 2008
Location: New York
Distribution: Debian
Posts: 809

Rep: Reputation: 88
Smile

Quote:
Originally Posted by mannclay View Post
yeah, man good luck!

I'm stuck with the hots for C (maybe Python). And as a self-teacher, I have no idea what to do with it once I'm proficient enough..

Write a whole new OS?? Maybe work on minix??? hehehe...
yean Mannclay! go for it! lol I really want to learn some programming because I want to pursue a career as Ethical Hacker and I must know some basic programming. what about you? what's the reason you want to learn programming?
 
Old 11-08-2008, 03:15 PM   #30
mannclay
Member
 
Registered: Nov 2007
Location: Brooklyn, NY
Distribution: eeeMint
Posts: 52

Original Poster
Rep: Reputation: 15
Can't place it... I love the utility of the kernel and its place in the structure of a machine.

Also, it seems that I have a taste for C syntax, which may help to understand most other programming languages. (maybe not perl).

But, really, to get whatever small programming gigs here and there while doing my other freelance job.

I read that companies outsource coders, but that they outsource to other countries as well which may not help me get started, you know, get SOME sort of exp.

I just wonder that if you know C and Python, simply what it can do, then when someone offers a problem, you can solve it wit those languages. But what are examples of some basic problems that can to be solved in C or Python?!

Also, what would be the basics learned in a language that can be transferred to other languages??
loops, do...while, all that sort of thing?

Last edited by mannclay; 11-08-2008 at 03:22 PM.
 
  


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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:56 AM.

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