-   Linux - Newbie (
-   -   Best programming language to use (

cudajaw 03-05-2005 11:30 AM

Best programming language to use
OK i have been a windows user for a long time and recently i moved to linux (Suse 9.2).
I have been using Visual basic for work and home project and also, what i want to know if whats the best programming language to learn, i want something that can do GUI's and also work with sockets preferably something thats platform independent. I really don't want to learn C (C++) is there anything out there thats close to VB for linux and cross platform ??

david_ross 03-05-2005 11:34 AM

I'd probably suggest something like perl and gtk if you want it to be cross platform

Gillibiabtiag 03-05-2005 02:28 PM

Why don't you want to use C/C++? They're both awesome languages, and once you know them, there aren't too many others that you won't learn fairly easily, and most programs (at least that I use) are programmed in C/C++.

Tinkster 03-05-2005 02:35 PM

Tcl/Tk - has as poor typing as Basic, and is cross-platform ;)


cudajaw 03-05-2005 02:48 PM

well after 3 hours of installing this and that trying to get GTK working i give up lol

last error i got was

checking for glib-2.0 >= 2.6.0 atk >= 1.0.1 pango >= 1.8.0... Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
configure: error: Library requirements (glib-2.0 >= 2.6.0 atk >= 1.0.1 pango >= 1.8.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

But glib is installed , i think i will go down the c++ route

grilledsalad 03-05-2005 03:05 PM

I'd go Java if I was you. Very powerful and versatile, but some people don't like it. Its very platform independent, and is made for the internet. Socket programming is pretty easy with it, but you might have a little bit of a hard time learning it if you've never done C or C++. Take a book out of the library and take a crack at it.

Electro 03-05-2005 03:26 PM

A programming langauge that is similar to Visual Basic or is Python. Like Java, Python can run on many operating systems, but Python can handle devices or data at low-level unlike Java. For the GUI part of Python, use wxPython. Next for IDE, use Boa.

Tcl/Tk is sloppy and it is slow when processing huge amounts of data.

Java uses a virtual machine that eats up memory and processor usage. Though if you handle the program well, it will be less power hungry.

grilledsalad 03-05-2005 03:53 PM

Sorry to get sidetracked, but I don't know much about Python....

Java uses the VM to run on different platforms with the same code, how does Python pull it off? I'll have to check into Python some time, i'm trying to get a handle on Perl this week =|

t0ny747 03-05-2005 11:11 PM

I would say to learn c, but is not for the light hearted :)

Mega Man X 03-05-2005 11:16 PM

Another vote for python here. It's also interpreted as Java, so it runs inside a virtual machine of some sort. It's comparable to Java and Perl for that matter (not the syntax, mind you).

Take a look into for more info. It's pretty sweet and fast. Works well with most API's around too, as GTK or even OpenGL ;)

syg00 03-06-2005 12:25 AM


Originally posted by Megaman X
Another vote for python here.
And another. I had to pick up C when I came across to Linux.
Got to the point I wanted to quickly proto-type what the results would look like.
Python was the choice.

Didn't know about Boa - might have to look at that one.

RodimusProblem 03-06-2005 01:37 AM

I took the Java route: Applets are perfect for my stuff.

I also use Flash, so Java was a simple step.

-- and the GTK gave me headaches. I had been working in Pascal but GTK proved more annoying.

cudajaw 03-06-2005 03:52 AM

Thanks for all your help, i started linux a few weeks ago and found, theres not much this comunity cant give advise on..
I think i will use the c++ route as linux seems to have a compiler built in by running the "cc" command, Thanks again

__J 03-06-2005 04:13 AM

cc is usually a symbolic link back to gcc - the c compiler. the c++ compiler is g++ ( g++ is technically only a shell script, but it must be run to set up gcc to compile c++ code).

so basically, to compile c code use gcc ( or cc), to compile c++ use g++

Mega Man X 03-06-2005 04:28 AM

Python usually works out of the box with most Linux distributions too. Type "python" at the command line to invoke the Interpreter. Just compare those two codes:


#include <iostream>
using namespace std;

int main()
    cout << "Hello there!";
    return 0;

That's C++. Now look at python:


print "Hello there!"
Python is still OO and you still have access to lower levels as Pointers (unlike Java and most interpreted languages). The syntax is much cleaner and unless you are writing a driver or something lower, there's no need to go as low as C or assembler... (personal opinion).

Just think about it, the only relevant line in the above C++ code is cout << "Hello there";. All the rest, regardless the book you are reading will threat the other lines as #include and what the braces does either in

1 - A new chapter, skipping it or
2 - Going into detail of those things and making a big mess in a newcomers head...

I'd say, go python first, you can't go wrong with it. Learn C or C++, or even Java afterward if you found it necessary :)

All times are GMT -5. The time now is 12:24 PM.