LinuxQuestions.org
Help answer threads with 0 replies.
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


Reply
  Search this Thread
Old 11-10-2008, 02:40 PM   #31
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133

Where did you get those outdated statistics? And then the client JVM rather than the 64 bit server that the typical java application of any importance would use. Here is something a little more up to date:
http://shootout.alioth.debian.org/u64q/java.php
Do you see the trend hinted at the article from CERN? Each new version of java is faster than the previous one.

Last edited by jay73; 11-10-2008 at 02:44 PM.
 
Old 11-10-2008, 03:00 PM   #32
abolishtheun
Member
 
Registered: Mar 2008
Posts: 183

Rep: Reputation: 31
Quote:
Java has superseded C, C++, Fortran, Cobol and the likes in many areas. C is slowly becoming a niche programming language while Java is now amongst the general purpose ones.
Really? How many applications on the average desktop (Linux, Windows, OS X) are written in Java?
 
Old 11-10-2008, 03:15 PM   #33
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You are right, there are not enough Java apps on the desktop yet

Anyway, I believe we are discussing trends in the programming freelance market. In my experience, the larger part of this market is about server side development, not desktop.
 
Old 11-10-2008, 04:42 PM   #34
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
Quote:
Originally Posted by pinniped View Post
There are fanatics of any programming language or even programming concept. At one time Pascal was the king of languages and all other computer languages will be forgotten in only a few years. Yeah - and where's Pascal now?
According to the link given by jay73, post 12 Pascal is 16th and Delphi (based on Pascal) is 8th. Pascal had two great things going for it. A single pass compiler and it was designed to teach good programming principles. Principles adapt to the environment, and hardware gets more powerful, so it is only natural for a language to fall out of vogue but good languages will always remain good languages.
 
Old 11-10-2008, 04:52 PM   #35
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by graemef View Post
According to the link given by jay73, post 12 Pascal is 16th and Delphi (based on Pascal) is 8th. Pascal had two great things going for it. A single pass compiler and it was designed to teach good programming principles. Principles adapt to the environment, and hardware gets more powerful, so it is only natural for a language to fall out of vogue but good languages will always remain good languages.
Pascal is definitely a good language to start from (not "C").

And there were other good languages by the same author - Modula, Oberon.
 
Old 11-10-2008, 05:44 PM   #36
raconteur
Member
 
Registered: Dec 2007
Location: Slightly left of center
Distribution: slackware
Posts: 276
Blog Entries: 2

Rep: Reputation: 44
Quote:
Originally Posted by Sergei Steshenko View Post
Pascal is definitely a good language to start from (not "C").

And there were other good languages by the same author - Modula, Oberon.
I discovered the joys of pointers when I learned Pascal. It was my first really pleasant learning experience after having learned Fortran, VAX/VMS, and dabbled in Basic (I disliked Basic from the get-go and that perception, right or wrong, has persisted).

When I picked up C, the similarities to Pascal made that learning process quite easy. I quickly discovered that I felt C was a more elegant language that it gave me more freedom to express data structures and algorithms with less constraint. The strict type checking in Pascal was largely responsible for that impression, though there are other factors.

All that being said, I'm not quite sure I agree that Pascal is a good starting place for developers today. Pascal isn't dead, but it is circling the drain, in my opinion. Unless one has an unlimited amount of time to go through the same sort of learning curve that I experienced, I think I would recommend C over Pascal as a foundation language.

At various times, I've also needed to use C#, Java, Perl, SQL, PIC/AREV, and most of the various shell and web scripting languages, and more.

My bread and butter continues to be C and to a slightly lesser extent, C++, but both are major components of every project I undertake.

From a simple preference perspective, I get the most satisfaction and enjoyment working with C and C++, and with Bourne type shells. I may well be a dinosaur of sorts, but I'm not worried about extinction.

I'm struggling a bit with C#. The similarities to COM are causing my brain to rebel, and I've had to fight to overcome my own prejudices. My perception may change with more time, I'm not giving up on it quite yet.
 
Old 11-10-2008, 05:58 PM   #37
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by raconteur View Post
I discovered the joys of pointers when I learned Pascal. It was my first really pleasant learning experience after having learned Fortran, VAX/VMS, and dabbled in Basic (I disliked Basic from the get-go and that perception, right or wrong, has persisted).

When I picked up C, the similarities to Pascal made that learning process quite easy. I quickly discovered that I felt C was a more elegant language that it gave me more freedom to express data structures and algorithms with less constraint. The strict type checking in Pascal was largely responsible for that impression, though there are other factors.

All that being said, I'm not quite sure I agree that Pascal is a good starting place for developers today. Pascal isn't dead, but it is circling the drain, in my opinion. Unless one has an unlimited amount of time to go through the same sort of learning curve that I experienced, I think I would recommend C over Pascal as a foundation language.

At various times, I've also needed to use C#, Java, Perl, SQL, PIC/AREV, and most of the various shell and web scripting languages, and more.

My bread and butter continues to be C and to a slightly lesser extent, C++, but both are major components of every project I undertake.

From a simple preference perspective, I get the most satisfaction and enjoyment working with C and C++, and with Bourne type shells. I may well be a dinosaur of sorts, but I'm not worried about extinction.

I'm struggling a bit with C#. The similarities to COM are causing my brain to rebel, and I've had to fight to overcome my own prejudices. My perception may change with more time, I'm not giving up on it quite yet.
Well, I am old enough to have experience in Algol-60, Fortran-IV, Pascal, Modula, C/C++ Perl, Verilog, TCL.

My point was that Pascal gives you decent manners and respect for type strictness, as well as clarity.

In practical terms I mostly work in Perl + C.

I dislike Java because it requires too much writing and because of, again, lack of closures (have heard they are about to introduce them) and poor scoping rules. Also because of poor efficiency, though people are claiming it's been improving lately.
 
Old 11-10-2008, 06:18 PM   #38
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
Having taught Pascal, C and Java at various times as a first language to various undergraduate students, my teaching preference is still Pascal. But then again I'm approaching it from a quite different angle, primarily I wanted students to respect their code not make money out of it, believing (maybe idealistically) that once well grounded in their profession the way to make a living will sort itself out.
 
Old 11-10-2008, 06:28 PM   #39
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by graemef View Post
Having taught Pascal, C and Java at various times as a first language to various undergraduate students, my teaching preference is still Pascal. But then again I'm approaching it from a quite different angle, primarily I wanted students to respect their code not make money out of it, believing (maybe idealistically) that once well grounded in their profession the way to make a living will sort itself out.
Exactly my point - you can also call it "teaching students clean/clear and good coding manners".
 
Old 11-10-2008, 06:49 PM   #40
irkkaaja
Member
 
Registered: Oct 2008
Posts: 44

Rep: Reputation: 16
Hey, at least you're not one of these guys.
I learned Java first and then C, and I like C a whole lot more than Java. Ever since I learned LC-3 assembly, C makes a whole lot more sense.

Last edited by irkkaaja; 11-10-2008 at 06:53 PM.
 
Old 11-10-2008, 06:51 PM   #41
raconteur
Member
 
Registered: Dec 2007
Location: Slightly left of center
Distribution: slackware
Posts: 276
Blog Entries: 2

Rep: Reputation: 44
I have a different perspective, that of an employer. I live and work in a college town and I've hired a fair amount of freshly-graduated interns, and I've kept some of them.
In this area, the University has stressed Java so much that most of the applicants I interview are surprised to learn that we expect them to know C and, more importantly, the standard C library.
I haven't taught at the University level, I've only coached and educated those interns in a real-world environment. Many a time, I've wished that educators would do the same.
I don't profess to understand the rationale of teaching languages that employers are not looking for, but I do acknowledge the trend.
As for C vs. Pascal as a teaching tool... experience is best, in my opinion. I won't call Pascal a nanny language but C, as people say of the sea, isn't inherently dangerous but quite unforgiving of mistakes. That, too, instills good coding techniques quite rapidly.
 
Old 11-10-2008, 07:17 PM   #42
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
Quote:
Originally Posted by pinniped View Post
Then again, people who don't know what they're doing just shouldn't be programming rather than searching for a "programming language for idiots".
Very good point, but you definitely don't have to be worth anything as a programmer to graduate with a CS degree. Or to be a professor of CS, for that matter.
ta0kira
 
Old 11-10-2008, 07:23 PM   #43
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
When teaching you need to squeeze as much as you can into the boundaries of a semester, Pascal works quite well in that regard to get students up and going, experience takes a little longer.

The artificial time limits of the academic year goes a long way to explain why Java is so popular (because so many corners are cut).

The last teaching job I had I was chairing a working group that designed a four year computer science degree. Which language to use as the starting language was probably the most contentious issue. Now I'm trying to make a living with the occasional contract, and when I get a programming job it's typically PHP that helps to support the bank balance the most. For fun I use C++
 
Old 11-10-2008, 07:43 PM   #44
mannclay
Member
 
Registered: Nov 2007
Location: Brooklyn, NY
Distribution: eeeMint
Posts: 52

Original Poster
Rep: Reputation: 15
This is great for a newbie at programming; the whole discussion.

I told my friends that I am staying with C as a first language. Been at it for 2 months and now silently it shows its power.

I'm still taking toddler steps, but somehow I can imagine what may be done with C, all sorts of programs that spring up even though they are like mirages of code that I cannot yet write!

That may be silly but its true to my experience, I'm damn excited.

But, I wonder if you guys can give me examples of problems solved in the real world with C? I'm sort of getting what it can do, but I cannot imagine what problems spring up that are solved in the industry with C other than device drivers and kernel development.

Can anyone offer examples of small client problems solved in C??

Last edited by mannclay; 11-10-2008 at 07:45 PM.
 
Old 11-10-2008, 07:57 PM   #45
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
First think of all the tools that are available on the command line, ls, top, ps, tar, bzip2 and so on. Now think C.

Last edited by graemef; 11-10-2008 at 08:10 PM.
 
  


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
LXer: Chrome grabs 1% of browser market in under 24 hours LXer Syndicated Linux News 0 09-03-2008 11:41 PM
LXer: Ingres grabs Thinking Instruments LXer Syndicated Linux News 0 07-26-2006 06:54 AM
Screen Grabs and The Gimp Jongi SUSE / openSUSE 2 12-20-2005 10:32 AM
Realplayer grabs *.rpm on download jackdoll Linux - Software 4 06-22-2005 06:04 PM
reading gdesklets/rss-grabs in new tab in firefox sterrenkijker Linux - Software 0 09-22-2004 01:29 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