LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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: What is your favorite language?
C 51 40.48%
C++ 35 27.78%
Java 16 12.70%
Shell 17 13.49%
Python 20 15.87%
Other 33 26.19%
Multiple Choice Poll. Voters: 126. You may not vote on this poll

Reply
  Search this Thread
Old 08-28-2007, 01:28 PM   #61
x-nc
Member
 
Registered: Feb 2007
Location: VA, USA
Distribution: CentOS, Fedora
Posts: 53

Rep: Reputation: 5
My "favorite" as opposed to the one I use most


Well, you see, my favorite programming language is COBOL. Not your Daddies COBOL but the current standard. While most people think that COBOL is dead and useless, they usually are shocked when they find out that the most current standard for it is from 2002. COBOL now has as much, or better, OOP than C++ will ever have. It's also got functions and all kinds of "modern" programming stuff. That and it still retains the great strengths it always had, like the WORKING-STORAGE SECTION and readability.

As for the ones I use most they are, awk, bash, php, perl.

Joe
 
Old 08-28-2007, 01:28 PM   #62
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Original Poster
Rep: Reputation: 211Reputation: 211Reputation: 211
Quote:
Originally Posted by Vampirite View Post
C#??
C#? ... C#? Blasphomy!
 
Old 08-28-2007, 03:52 PM   #63
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Original Poster
Rep: Reputation: 211Reputation: 211Reputation: 211
Perl?

Quote:
Originally Posted by the_scourge View Post
I'd mod you up if I had mod points.
I don't understand what all the fuss is about Perl; I've basically only read the wiki on it. What can Perl do that other languages can't? Why do so many people use it?
 
Old 08-28-2007, 05:00 PM   #64
wolfger
LQ Newbie
 
Registered: Oct 2006
Distribution: Ubuntu - Feisty Fawn
Posts: 25
Blog Entries: 3

Rep: Reputation: 15
Quote:
Originally Posted by jhwilliams View Post
I don't understand what all the fuss is about Perl; I've basically only read the wiki on it. What can Perl do that other languages can't? Why do so many people use it?
When it comes to basics (like manipulating data), Perl is extremely powerful with a small learning curve and rapid development cycle (no compiling). I also prefer Perl because it dynamically types variables.
$x=5; #no explanation needed
$x.="0"; #concatenates a 0 on to the end of the string
$x+=5; #mathematically adds 5
print $x;
(result is 55)

That a rather pointless example, but very demonstrative. In practical terms, I never have to scope between a short, int, long, and float....

Last edited by wolfger; 08-28-2007 at 05:02 PM.
 
Old 08-28-2007, 05:54 PM   #65
ProzacR
Member
 
Registered: Jan 2006
Distribution: Slackware, Fedora
Posts: 50

Rep: Reputation: 2
Other t.y. Perl!
I can not explain why, but programing in Perl is just fun.
Maybe because Perl is so easy to learn, so simple and vry powerful at same time.
 
Old 08-28-2007, 08:02 PM   #66
ocicat
Member
 
Registered: May 2007
Posts: 208

Rep: Reputation: 48
Quote:
Originally Posted by ryuo View Post
...but how come only one commenter mentioned Ruby?
...because everyone knows that Ruby has cleaned up a lot of mistakes made in other languages.
 
Old 08-28-2007, 08:24 PM   #67
iwasapenguin
Member
 
Registered: Jul 2007
Posts: 110

Rep: Reputation: 15
...I think the thing with what is considered the most powerful languages is that they are not originally made by "serious" programmers. That is to say that with perl for instance, Larry Wall could not write a program in any language the way he wanted to so he made a new one, C was invented for the sake of making an OS which was really made to play a game on.
 
Old 08-28-2007, 08:54 PM   #68
wolfger
LQ Newbie
 
Registered: Oct 2006
Distribution: Ubuntu - Feisty Fawn
Posts: 25
Blog Entries: 3

Rep: Reputation: 15
I'm kinda surprised nobody's mentioned Lisp... Or did I just miss it?
 
Old 08-28-2007, 09:10 PM   #69
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
Quote:
Originally Posted by wolfger View Post
I'm kinda surprised nobody's mentioned Lisp... Or did I just miss it?
You did indeed ... post #3 has it


Cheers,
Tink
 
Old 08-29-2007, 05:42 AM   #70
Vampirite
Member
 
Registered: Apr 2005
Location: England
Distribution: Arch Linux
Posts: 223

Rep: Reputation: 30
Quote:
Originally Posted by jhwilliams View Post
C#? ... C#? Blasphomy!
Heh, Just a thought...

But what about Mono and GTK#? Arent they C# based?

Theres an odd one under 'B' on wikipedias list of programming languages too...

What about FoxPro? *ducks*
 
Old 08-29-2007, 09:57 AM   #71
drlasterjr
LQ Newbie
 
Registered: Apr 2006
Location: West Long Branch, NJ
Distribution: Slackware
Posts: 11

Rep: Reputation: 0
I think the additional posts have made my original post's point. The choice of language is dependent upon the project being done. And to a limited degree what a person is comfortable with using.

Perl was created because the existing languages did not do a job that Larry Wall needed to do. So he created a language to fill the need. The Perl interpreter is written in "C" or C++ I believe. As for FORTRAN it is alive and well - doing things most things people never think of - like running the traffic light systems. Its strength is mathematical computations. Ada is also doing quite well - it took off in Europe even though it was "created" by the US DoD. "B" was the predecessor to "C". And "C" and Unix were created by AT&T at Bell Labs not to run games but to run the phone system if I remember correctly as well as a research project. But games tend to stress a system in ways no one thinks of and thus are a good way to test languages and operating systems. See testing can be fun. Just look at how many games run on Microsoft Windows. And the game industry tends to have their own game programming languages no one sees outside of that industry.

There is a lot of history in the how and why language are created. Each one was created to fill a need or perceived need. As time has progressed some languages have fallen by the way side in most cases. Algol, Forth, PL/I (and derivatives), RPG II and other lesser known languages still exist but are rarely heard from today. Many have been supplanted by easier to use languages and by computer languages individual students learned in school. People tend to use the programming language they are familiar and are willing to learn. My brother has taken the time to learn lisp and has found it make his some of his work easier. Again, the choice is based upon the needs of the project.

For those of you in college, or out now, how many computer language classes did you take and how many computer languages have you been exposed? In my first year of college I took 5 different programming language classes - FORTRAN, IBM Assembler, PL/1, Cobol, and RPG II. For work I generally used FORTRAN and Series 3200 Assembler because of the math nature of the software being written. Remember, FORTRAN is from "FORmula TRANslator". And I have used and use Pascal, Ada, "C", various Assemblers, PHP and other interpreter based languages for different computers. The choice is always the how and why of the project I am working on.

Another question is a scripting language a true programming language? I think the answer is yes - the difference is that scripting languages tend to be specialized for a specific task or environment. I have written some powerful scripts to do support operations that while could be written in a compiled language it is much easier and quicker to use scripting languages.
 
Old 08-29-2007, 10:15 AM   #72
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
Don't know 1 well enough to say it's my favorite. I really have fun with perl, python, php and shell scripting. I have dabbled with RoR just not flexible enough to try and take the time to learn something else. Wanna learn more PPP.
 
Old 08-29-2007, 10:33 AM   #73
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
I'd say scripting languages are "true programming". They are "interpreted" rather than "compiled". Perl can do most everything C can (not surprising given that it was written to marry C with awk and other utilities).

There was an old Language called Databus used on the old Datapoint hardware and it was migrated to UNIX (the one I was familiar with was DB/C) and oddly enough it was an "interpreted" language as well with the interpreter itself being written in C. However, the major system I worked on at the time had all of its "programs" written in DB/C and a full "development" staff that wrote exclusively in that "intepreted" language.

For that matter I always thought macro "programs" in Lotus 123 were "real programming". In my former life as an accountant I could make Lotus 123 do many things that the average user wasn't aware was available and made rather sophisticated menu systems within it for the benefit of non-techie users.
 
Old 08-29-2007, 11:55 AM   #74
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Original Poster
Rep: Reputation: 211Reputation: 211Reputation: 211
Red face

Quote:
Originally Posted by drlasterjr View Post
I think the additional posts have made my original post's point. The choice of language is dependent upon the project being done.
This was my original post's point! Quit piggybacking on my successes. (jokes)
 
Old 08-30-2007, 05:35 PM   #75
af101
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by jlightner View Post
That'th right I'm a thtealth pothter...

I think the person that created the word lisp was a sadist - imagine describing people with a word they themselves can't say.
There's no need to take any position in favor of John McCarthy here, but I think it's quite curious to note that the form LisP took in the end was not the original one; McCarty intended the sexps only for machine usage, and proposed a more "traditional" (though traditional for non-assembly language, at the time, was mainly what FORTRAN was), infix notation for operations in expressions to be written by humans, but that second format actually never took off.

BTW, we ought LisP quite a lot: McCarthy introduced the basic conditional if-then-else instruction into Algol starting from what he was doing for LisP, when FORTRAN was having just conditional goto, LisP was the first language to propose functions as first-class objects, *recursion*, garbage collection, and many other things that we consider standard today.

Back in 1992, I wrote a fully working neural network simulator, for whatever kind of topology you wanted, in *one* day, to help a pair of friends (incidentally, two pretty good programmers) that had been struggling for a week to write that simulator in C using pointers; when I gave them the solution about what they were missing, then their solution was running 10x time faster, but...

The same year, my Computer Graphic course work consisted in a kernel for a proto PHIGS+ system, able to do extrusions, sweeps (I may be wrong about this term), and 3D polyhedra algebra, plus a lot of other things, all ported to LisP from Pascal, and I had a lot of fun doing it, finding lots of occasion for code improvement.

LisP it's an extremely incremental-fast-prototyping language, that allows you to do very complicated things in very short terms, and with today editors keeping that proliferation of parentheses under control is peanuts.

To close, whilst looking at the main page on Lua, I found this quite interesting page:

http://www.tiobe.com/index.htm?tiobe_index

According to which LisP is still among the 20 most used languages.

I wrote code in about 25 different languages to date, and I've written a lot of C code, but, IMHO, no language has contributed to open my mind more than 2 of them:

LisP, and ProLog.


My vote was for LisP, as you may have probably guessed.


Cheers,
Andrea.
 
  


Reply

Tags
language, programming



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
whats you favorite 802.11b sniffing application? GNUROCKS Linux - Wireless Networking 5 08-27-2007 03:10 PM
Favorite language DanTaylor Programming 10 03-16-2006 02:58 PM
Which is your favorite language and why? WindowsBurner Programming 40 10-06-2004 09:54 AM
Preferred Language For Application? Crashed_Again Programming 3 12-06-2003 01:09 PM
Favorite scripting language rverlander General 8 09-02-2002 05:06 AM

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

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