ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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
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?"
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 09: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...
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:
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.