ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
View Poll Results: What is your favorite language?
Maybe everyone should review this site, pick a few languages to try out, then decide which language is best. Of course, only after writing a representative selection of applications, libraries, and daemons with each one... http://www.ntecs.de/old-hp/uu9r/lang/html/lang.en.html
ta0kira
PS I voted for C++ with C where the STL would just be ridiculous and where I want to use glibc.
PPS Maybe the poll should be "Which language would you refuse to use if it was the last one on earth?"
Amen to that one ... I can't quite express how disgruntled I
am with the java-based middle-ware we're (have to?) using
without violating forum rules.
I appreciate that it's clean, and easy to code in ... but
just how much hardware are we supposed to throw at those
piles of cr*p to make them perform in an acceptable manner?
Please don't take my comment as even a suggestion of support for JAVA. I just thought a lot of people were lost in the abyss, still.
Poor Sun - I worked near their main campus in Burlington, MA. Several entrances to the campus have been roadblocked because there aren't employees there to use them. The new UltraSPARC looks promising though, and I still wish ZFS would go FOSS - or maybe GPL could tame down a bit to the advantage of LinuxZFS users. Maybe somebody can tell me why it doesn't make (political) sense to port kernel space ZFS? Pardon my rant - a wild departure from the thread!
Last edited by jhwilliams; 08-25-2007 at 08:48 PM.
I was surprised to see how few people voted for Java, and how many said C over C++. How about you?
few people voted for Java, but that doesn't represent anything. when you do polls like this, you don't just put your polling question in one forum. If you really want to get results, put your question across different forums. then there are other things to consider like duplicates, whether you have bias..etc...Imagine if you post your question in a Java forum..how many Java enthusiasts will vote for Java ?? precisely why i say its useless...
Dude, what's your beef with my poll?; do you want to throw down e-fisticuffs?
As for your post though: the many corners of the internet are the best resources for current languages, however noone wants to go to promoteASP.net to take polls on programming.
Dude, what's your beef with my poll?; do you want to throw down e-fisticuffs?
As for your post though: the many corners of the internet are the best resources for current languages, however noone wants to go to promoteASP.net to take polls on programming.
if you can't understand what i say, then too bad for you.
I like C because it lets you work with memory more directly so that programs aren't slow (and doing this isn't frowned upon). What I don't like about it, though, is that the C standard library isn't as advanced as other libraries like STL, therefore leaving people with two primary choices: write a fast, efficient program in C with a limited standard library, or use a higher-level programming language and its encapsulated libraries without being able to manipulate the memory directly. One of the fundamental problems I see in the C library is that you can't get the size of a malloc-ed buffer without having a backup of it somewhere, thus causing many other functions in the standard library to not be as dynamic (i.e. you have to create 10000 character arrays to use fgets with large lines, and that still doesn't compensate for even longer lines). Why can't routines like fgets just resize the buffer when necessary? That shouldn't incur much of a speed penalty, especially compared to STL and other libraries/languages that let you create dynamic arrays and work with them easily.
I'm writing a personal library that deals with this by abstracting malloc/realloc/free so that the buffer is stored like this:
[allocsize][size]data...
Where allocsize is the amount of space you can write to data without writing out of the valid bounds, and size is the logical size of data (e.g. how many characters, including the null terminator, are in a string). The pointer returned by the alloc function of this library points to 'data'.
Java is a language where even a monkey could code. You make very few mistakes per line ususally because the semantics is tightened and very rarely ambiguious (It will do just what you want it to do). That's not always the case with C++ (we can only compare Java to C++, comparing Java to C doesn't make sense, C is not an object language)
It mixes well with UML and code generators and that's why a lot of industrial and scientific projects use it. Everything is out of the box, lots of objects, lots of methods... some good IDEs.
That said, I don't like Java. Sun was not able to define a real standard and all this licensing problems pushed me to not use it. Only when c# arrived, they changed their mind.. surprising..
C++ and STL are fun, I really like using it. You can mimic Java with C++/STL and can go even further. It's often quicker.
I'm currently working on a huge project using c++,c,corba,java,... and the only part of it where the UI often freezes is... well, you know
What about theoretical languages?
Laid back (for programmers with computers that would work in hot tubs).
Expresso (A properly compiled form of Java with an API more like C++ that I'm yet to invent).
That language that's perl and python mixed that one of my freinds though of in a fight with me over which language to use.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.