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

Poll: The best languages?
Poll Options
The best languages?

You must log in and have one post to vote in this poll. If you don't have an account, you can register here.
Results will be available after the polls close.

The nominees are:

PHP
Perl
Python
Ruby
C
C++
Java
Lisp
Erlang
Smalltalk
Haskell
C#
Lua
COBOL
Scheme
Go
Groovy
Fortran
R

Reply
 
Search this Thread
Old 06-26-2010, 04:57 AM   #31
pr_deltoid
Member
 
Registered: Jun 2010
Distribution: Fedora
Posts: 289

Original Poster
Rep: Reputation: 41

Quote:
Java is compiled (contentious, but I believe it is because you must run the *java compiler* to *compile your code* before you run it).
So are Python and Perl.
http://openbookproject.net/thinkcs/p...sh2e/ch01.html
http://perl.about.com/od/programming...pretedlang.htm

From http://docs.python.org/glossary.html:
Quote:
Python is an interpreted language, as opposed to a compiled one, though the distinction can be blurry because of the presence of the bytecode compiler. This means that source files can be run directly without explicitly creating an executable which is then run. Interpreted languages typically have a shorter development/debug cycle than compiled ones, though their programs generally also run more slowly.
The distinction is blurry, but they're compiled into bytecode first like Java... *shrugs*

http://www.computer-dictionary-onlin...7s%20dichotomy

Last edited by pr_deltoid; 06-30-2010 at 09:27 AM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 06-30-2010, 09:24 AM   #32
carmelapples
LQ Newbie
 
Registered: Mar 2007
Posts: 5

Rep: Reputation: 0
Smile no ColdFusion?

Why would you miss one of the most robust languages available? ColdFusion!

I vote ColdFusion.

http://www.adobe.com/products/coldfu...gelist_kit.pdf
 
Old 06-30-2010, 09:29 AM   #33
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
Quote:
Originally Posted by carmelapples View Post
Why would you miss one of the most robust languages available? ColdFusion!

I vote ColdFusion.

http://www.adobe.com/products/coldfu...gelist_kit.pdf
????

http://en.wikipedia.org/wiki/ColdFusion :


Quote:
ColdFusion is a commercial rapid application development platform invented by Jeremy and JJ Allaire in 1995. Originally designed to make it easier to connect simple HTML pages to a database, by version 2 it had become a full platform that included an IDE in addition to a full Scripting Language. Current versions of ColdFusion, sold by Adobe Systems, include advanced features for enterprise integration and development of rich internet applications. ColdFusion primarily competes with PHP and ASP.
 
Old 06-30-2010, 09:45 AM   #34
pr_deltoid
Member
 
Registered: Jun 2010
Distribution: Fedora
Posts: 289

Original Poster
Rep: Reputation: 41
ColdFusion doesn't seem very impressive to me...
--------------------------------------------
"Java is compiled (contentious, but I believe it is because you must run the *java compiler* to *compile your code* before you run it)."
Right... I read some more about it and thought about it some more and I can see how the way Java does things would be better to a lot of people.

Last edited by pr_deltoid; 06-30-2010 at 09:51 AM.
 
Old 06-30-2010, 09:58 AM   #35
silkenphoenixx
Member
 
Registered: Aug 2006
Location: Pretoria, South Africa
Distribution: Linux Mint 13 Cinnamon
Posts: 66

Rep: Reputation: 16
I personally see no reason to preferring C to C++ except that a lot of projects seem to choose C for some reason. Depends on what you want to work on.

Python and perl are both good, and bash is useful. Realising of course that this is just repeating what a lot of other people have said.
 
Old 06-30-2010, 02:10 PM   #36
akhorus
LQ Newbie
 
Registered: Jan 2008
Location: Cordoba, Argentina
Distribution: Fedora, SuSE, Ubuntu, Mandriva
Posts: 21

Rep: Reputation: 15
C and Python: Great combination

Quote:
Originally Posted by prdeltoid View Post
I'm voting for Python/C just as an "overall" opinion.
That is my choice also, based on my experience and current work.
If you learn C, learning other languages will be easy. Besides, C is perfect when you need efficiency.

Python is perfect for most of the tools I need to develop, specially because you can program VERY fast. It's great for fast prototyping also. Amazing for data manipulation, analysis and visualization. When efficiency is needed, I go back to C.

But of course, every language has its benefits and you should choose based on the project you are working on. The important thing is to know the basics, be a good programmer and then (with time) you'll probably end up using different languages.
 
Old 07-01-2010, 12:44 AM   #37
ash_fds
LQ Newbie
 
Registered: Jul 2008
Posts: 1

Rep: Reputation: 0
I think the de-facto language till date is C/C++
So I prefer to vote C/C++...
 
Old 07-01-2010, 01:22 AM   #38
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
Quote:
Originally Posted by ash_fds View Post
I think the de-facto language till date is C/C++
So I prefer to vote C/C++...
Write this:

Code:
sergei@amdam2:~/junk> cat -n replace_eval_demo.pl
     1  #!/usr/bin/perl -w
     2
     3  my @input =
     4    (
     5    "one, two, three #####",
     6    "hello, world   @@@@@@",
     7    "just a line"
     8    );
     9
    10  foreach my $line(@input)
    11    {
    12    $line =~ s/^(.)([^\@\#]*)(\#|\@)*/uc($1).$2/e;
    13    warn "\$line=$line";
    14    }
sergei@amdam2:~/junk> ./replace_eval_demo.pl
$line=One, two, three  at ./replace_eval_demo.pl line 13.
$line=Hello, world    at ./replace_eval_demo.pl line 13.
$line=Just a line at ./replace_eval_demo.pl line 13.
sergei@amdam2:~/junk>
in C/C++, and then we'll see how much effort it took from you.
 
Old 07-01-2010, 09:58 AM   #39
paulalkema
LQ Newbie
 
Registered: Jul 2010
Posts: 2

Rep: Reputation: 0
ColdFusion

First off, ColdFusion is a web language used to build web based applications like php. My only point is that if your going to add a web based language to your list that you should at least add the best language of them all, ColdFusion.

Want to see some code examples? I'll show you how robust ColdFusion really is.

The PHP code below, will return the columns firstname, lastname from the Friends table.

<?php
//
$con = mysql_connect("localhost","username","password");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}

mysql_select_db("my_db", $con);

$result = mysql_query("SELECT friendId,firstName,lastName,nickName FROM friends");

while($row = mysql_fetch_array($result))
{
echo $row['FirstName'] . " " . $row['LastName'];
}

mysql_close($con);
?>

Now look at the Coldfusion Example

The ColdFusion code below, will return the columns firstname, lastname from the Friends table.

<cfquery name="getMyFriends" datasource="peter">
SELECT friendId,firstName,lastName,nickName
FROM friends
</cfquery>

<cfoutput query="getMyFriends">
#firstName# #lastName#
</cfoutput>

Isn't the ColdFusion code just so straight forward to the point and easy to read? Because ColdFusion requires 2 to 4 times less code, it enabled programmers to write applications 2 to 4 times the speed. Also it should be noted that I've written PHP longer than ColdFusion and I know both languages extremely well.

All I want is for ColdFusion to be added to this list, that's my vote.
 
Old 07-01-2010, 10:07 AM   #40
pr_deltoid
Member
 
Registered: Jun 2010
Distribution: Fedora
Posts: 289

Original Poster
Rep: Reputation: 41
That is a real nice comparison. The main problem I have is your choosing it as your sole choice. I don't think many people would want to just learn ColdFusion and forget about everything else. I definitely wouldn't.
EDIT: I can't change the poll. I would also add assembly, and a couple of others mentioned... like OCaml. A few others also.

Last edited by pr_deltoid; 07-02-2010 at 10:39 AM.
 
Old 07-01-2010, 10:17 AM   #41
pr_deltoid
Member
 
Registered: Jun 2010
Distribution: Fedora
Posts: 289

Original Poster
Rep: Reputation: 41
The more I think about it, my personal decision of C/Python sounds better and better to me. (Plus Bash/utilities). I don't know what my I.Q. is, but I definitely wouldn't say I'm below average intelligence. But learning about computers and programming and math has so far been a real hassle for me. I don't remember everything. I have to read it twice. I have to come back to it later on in a book or tutorial. Etc. For me, C/Python/Bash/utilities seems very balanced and not a bad combination at all.

Last edited by pr_deltoid; 07-02-2010 at 05:03 AM.
 
Old 07-01-2010, 10:36 AM   #42
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
Quote:
Originally Posted by paulalkema View Post
...
Isn't the ColdFusion code just so straight forward to the point and easy to read? Because ColdFusion requires 2 to 4 times less code, it enabled programmers to write applications 2 to 4 times the speed. Also it should be noted that I've written PHP longer than ColdFusion and I know both languages extremely well.
...

A language controlled by single commercial entity - no, thank you.
 
Old 07-01-2010, 11:04 AM   #43
ThreeRavens
LQ Newbie
 
Registered: Jul 2010
Posts: 2

Rep: Reputation: 0
CF is not contolled by a single entity

Quote:
Originally Posted by Sergei Steshenko View Post
A language controlled by single commercial entity - no, thank you.
Actually Sergei, there are several Open Source options for ColdFusion. Railo and BlueDragon are 2 I can think of off the top of my head. I am not familiar with Railo, so i cannot comment it, but BD is one that I beta'd and it is on par with the Adobe version, with the exception of the ability to integrate flash. BD actually drove some of the new features that were implemented in versions 8 and 9. Also, one of the other posters commented on people who do CF don;t learn other languages, which is not correct. CF is nicely intertwined with Java, so most CF'ers are also familiar with Java. You can actually use Java code directly in your CF code without having to compile it first. The most recent version, 9, allows for integration with other languages, like .NET, so you can utilize modules that were written in other languages in CF. This has been available since version 8. The integration with Java occurred in version 5 when they changed the underlying engine from C++ to Java.

I have been a CF developer since 1998. I have been using it since version 3-version 4.5. I find it to be the best web development language there is. Combine this with products like Adobe Air and you can do desktop apps as well. To stick with the discussion, I would say the combo of Java and Cf is the best and most efficient development language out there.

Eric
 
Old 07-01-2010, 11:06 AM   #44
k-sea
LQ Newbie
 
Registered: Jul 2010
Posts: 2

Rep: Reputation: 0
Wink

Quote:
Originally Posted by prdeltoid View Post
That is a real nice comparison. The main problem I have is your choosing it as your sole choice. I don't think many people would want to just learn ColdFusion and forget about everything else. I definitely wouldn't.
EDIT: I can't change the poll. I would also add assembly, and a couple of others mentioned... like OCaml. Probably a few others also.
Are you programing for the web, then ColdFusion makes the most sense. I started with PHP 10 years ago, did a few things here and there, but as a whole, the language is still ugly. After 2 years, I came into a position where the companies website was ColdFusion. I was skeptical at first, but after 6 months working on this site, I was totally amazed.

Writing cfml is like writing html, it is so intuitive it makes the perfect language to learn for website development, and it can do ANYTHING you want.

Throw any web application at a ColdFusion Developer, and we will develop it in less time, with 1,000's less lines of code.

Since CFML is straight forward; html the same, you can spend more time writing good SQL queries. Javascript is about as ugly as php so frameworks take care of that.

In the end, I probably spend the most time on any application actually writing SQL
 
Old 07-01-2010, 11:07 AM   #45
ThreeRavens
LQ Newbie
 
Registered: Jul 2010
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by JohnGraham View Post
I only voted for C, as it's basically the lingua franca of programming. For anything else, learn what'll be useful to you and what you'll learn. C is the only language I'd say would be useful* for all programmers to know.


* Note the deliberate use of useful, not necessary.
I would agree. It is great to learn as a base language since all of the other modern languages are based on it. It also teaches you the logic and proper structure that is needed to produce good clean code.

Eric
 
  


Reply

Tags
c++, compiler, java, language, programming


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
What programming language, languages to learn for linux. gimmee Programming 11 11-28-2006 08:30 PM
good programming languages to learn qennster Programming 13 05-22-2001 11:12 AM


All times are GMT -5. The time now is 03:58 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration