LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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


View Poll Results: Wich language?
C 45 28.13%
C++ 38 23.75%
Perl 12 7.50%
Java 22 13.75%
Python 26 16.25%
Other 17 10.63%
Voters: 160. You may not vote on this poll

Reply
  Search this Thread
Old 05-18-2002, 09:23 PM   #16
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928

Config, I disagree

A "solid procedural background" is an obstacle in learning OO.

If OO is the aim, start with OO.
 
Old 05-19-2002, 03:35 AM   #17
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
The question is if you'd like to go into OO at all, or not. Personally, I write in pure C.
 
Old 05-19-2002, 07:10 PM   #18
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hi Mara!


>>>And it is good if you have a solid background of procedural programming
>>>before you get into object oriented programming.
>>A "solid procedural background" is an obstacle in learning OO.
>>If OO is the aim, start with OO.
>The question is if you'd like to go into OO at all, or not. Personally, I write in pure C.
Well, given configs post I assume he had OO in mind so it actually wasn't the question ;)

And as for "pure C" ... how much/how often do you code?
How often do you re-use your code?
With modifications?

Personally I think that OO helps a lot in re-use of code
and lowering maintenance efforts signifficantly. But I admit that
in small projects or where execution speed is crucial (when
100ns for a function call is too much :} of an overhead) C can
be used... ;)

Cheers,
Tink
 
Old 05-20-2002, 01:02 AM   #19
360
Member
 
Registered: Jun 2001
Distribution: FC4
Posts: 136

Rep: Reputation: 15
My opinion is that one should learn programming with a language that is relative to his interest.

For instance; if you are interested in being a webmaster and programming shopping carts, start with PHP.

If, however you are more interested in being a sys admin, start with shell scripting, C, perl or python.

If you are intested in programming GUI aplications for Microsoft platforms, start with C++ or Python.

Once you decide what type programmer you want to be, the next step is finding the best book or books to help you. It also helps to have a mentor that you can call on.

If you don't know what type of programmer you want to be, I would start with C because it may be concididered the mother of other launguages such as PHP, Perl and C++ and would give you a good foundation.

Or you can start with Python.

Hope this helps.
 
Old 05-20-2002, 04:35 AM   #20
kwigibo
Member
 
Registered: Apr 2002
Posts: 53

Rep: Reputation: 15
English. If you can word your ideas well in english, then any programming language becomes much easier.

I prefer C. Then C++ after that.
 
Old 05-20-2002, 07:54 AM   #21
Eits0
Member
 
Registered: May 2002
Location: Finland
Distribution: Mandrake 9.0
Posts: 188

Original Poster
Rep: Reputation: 30
To 360:
According to what you say about use of different languages, tells me I should learn C++.
I'm not really intrested about writing my own OS, or be sysadmin.

I'm intrested at creating different applications to different platforms, so C++ is the answer?

I'm, however, still going to finish one book about basics of C first, then move to C++. Hopefully I'm motivated enough to learn another.
 
Old 05-20-2002, 09:19 AM   #22
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Sorry to hark back quite a long way to something mentioned earlier, but there are Basic languages available for Linux. There's something called Phoenix which looks and feels pretty much like VB. There's a Windows version of it aswell, so you can port your stuff over to Windows aswell, if you like. Also, you could take a look at XBasic. It seems to be a little more difficult than your common-or-garden VB (I think it tries to be too much in one package), but all the source-code is cross-compilable, so you could compile XBasic for any platform you wish, then write your own XBasic programs...and in theory they should work absolutely fine. I've only tried in in Windows + Linux - it works OK but seems a bit clumsy at times.

As for which to start with...I think that possibly Calum has the right idea.
 
Old 05-20-2002, 02:15 PM   #23
Winter
LQ Newbie
 
Registered: May 2002
Location: Washington State
Distribution: Red Hat 7.0
Posts: 22

Rep: Reputation: 15
if you just wnat to have fun, basic.. after that C is awesome, simple and yet has the possibility of becoming complex. C++ is great too..
 
Old 05-21-2002, 05:44 AM   #24
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
Originally posted by Tinkster
Hi Mara!


>>>And it is good if you have a solid background of procedural programming
>>>before you get into object oriented programming.
>>A "solid procedural background" is an obstacle in learning OO.
>>If OO is the aim, start with OO.
>The question is if you'd like to go into OO at all, or not. Personally, I write in pure C.
Well, given configs post I assume he had OO in mind so it actually wasn't the question
It's becoming a general discussion on programming, as I see.

Quote:

And as for "pure C" ... how much/how often do you code?
Nearly all the time. Let's say 40 hours a week. Sometimes more, sometimes less, but it's the average. I've used many languages and then decided to use C. It's not perfect, but the best one I know.
Quote:

How often do you re-use your code?
With modifications?
Very often. Both. Code can be easily used in other projects/modules if it's well written. My method is to use max 20-lines functions and good comments and I can use them many times.

Quote:


Personally I think that OO helps a lot in re-use of code
and lowering maintenance efforts signifficantly. But I admit that
in small projects or where execution speed is crucial (when
100ns for a function call is too much :} of an overhead) C can
be used...
For me, speed IS always essential. I don't use C++ if it's my choice which language to use, because it's slow and tries to do too many things on its own. I prefer to have full control over my project (yes, I like assembler).

Quote:


Cheers,
Tink
Mara
 
Old 05-22-2002, 05:25 AM   #25
gui10
Member
 
Registered: Mar 2001
Distribution: enigma, slack8
Posts: 677

Rep: Reputation: 30
you CAN do OOP in C.
and 360 has a point. a programming language is a tool, a means to an end. if it becomes the end, then either you are developing a new language, a compiler or a lousy apps developer. pick the best tool for your job. after all, a fantastic screwdriver can't do the job of a hammer well.

Last edited by gui10; 05-22-2002 at 05:26 AM.
 
Old 05-22-2002, 05:32 AM   #26
gui10
Member
 
Registered: Mar 2001
Distribution: enigma, slack8
Posts: 677

Rep: Reputation: 30
Quote:
Originally posted by Eits0
I'm intrested at creating different applications to different platforms, so C++ is the answer?
depends on what kind of applications you're interested in.
Quote:
Originally posted by Eits0
I'm, however, still going to finish one book about basics of C first, then move to C++. Hopefully I'm motivated enough to learn another. [/B]
what you learn in C won't be wasted.
 
Old 05-22-2002, 02:45 PM   #27
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
To learn programming, the way it's "supposed to be", I would say Pascal. I have not seen a stricter stiff-ass language than that.

For big-time applications (on the *NIX platform), the order of preference is:
  1. C/C++
  2. Java (only when needed, preferably not for server apps)
For quick and dirty fixes and hacks (to save you time, simplify and automate tedious tasks e.t.c.):
  1. Perl
  2. shell scripts (bash and tcsh for example)
For CGI apps:
  1. Perl
  2. PHP
  3. Python
And don't even talk to me about TCL. I tried it once, and when the interpreter gave me an error on this code:
Code:
proc foo
{
    ...
}
and accepted this:
Code:
proc foo {
    ...
}
I just set it aside. I just became very disappointed... What kind of a parser is this anyway?! Personally I prefer the former (first) style of bracketing, and that just adds to it. Even shells don't have a problem with that! If there's a reason for that, btw, I'd like to hear it, because right now I attribute it to a weak interpreter.
 
Old 05-22-2002, 05:09 PM   #28
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Yooo Mara :)

>It's becoming a general discussion on programming, as I see. :)
Heh ... not too shabby.


>Nearly all the time. Let's say 40 hours a week. Sometimes more, sometimes less, but it's the
>average. I've used many languages and then decided to use C. It's not perfect, but the best one I know.

>For me, speed IS always essential. I don't use C++ if it's my choice which language to use,
>because it's slow and tries to do too many things on its own. I prefer to have full control over
>my project (yes, I like assembler).
What kind of projects/target apps is that?
We're programming acoustics data evaluation (about 270KB/s data stream from a towbody)
and have no performance issues using C++ on a P166 with 64Megs even using Motif & the
Xrt class libraries for visualisation. And as for "full control" ... I rather type 3 lines to display
a window saying "Hello, world!" than 200 ... ;) makes debugging/error-checking much easier.
And if you link the external libraries statically you can gain some performance, too. I don't think
that a statement like "C++ is slow" is just :]

Cheers,
Tink
 
Old 05-23-2002, 07:59 AM   #29
jISV
Member
 
Registered: Feb 2002
Location: England
Distribution: MDK8.2
Posts: 128

Rep: Reputation: 15
Java I'd say.
I'm not sure why people are so against it, I've used VB , C, Forte, Java and had a poke around in C++ I'm basing this on writing applications mind you - not hardcoregetintotheosandmessaroundwithit type apps. Really business apps. A little knowledge of shell scripting (nawk sed) is handy to automate things

I like Java cuz it's neat, tidy, strict and if you think a design through, you can code it in no time! This also help in maintenance which is where I feel some other languages let developers down. It is good to know a bit about each though.
 
Old 05-23-2002, 02:42 PM   #30
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
Originally posted by gui10
you CAN do OOP in C.
Then it's C no more.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
What's a good Programming language to begin with? PLZ HELP! Jonescity Programming 24 07-30-2005 07:43 AM
Where to begin silverjump Programming 3 01-22-2005 12:36 PM
Before i begin flickflum Linux - Newbie 7 10-27-2003 11:01 AM
Before I Begin... (l.winthorst) Linux - Newbie 3 08-06-2003 03:42 PM
where to begin dude Linux - Newbie 4 05-01-2002 03:00 PM

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

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