LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-05-2005, 12:30 PM   #1
cudajaw
LQ Newbie
 
Registered: Feb 2005
Location: England
Distribution: Suse Linux 9.2
Posts: 13

Rep: Reputation: 0
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 vb.net, 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 ??
 
Old 03-05-2005, 12:34 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I'd probably suggest something like perl and gtk if you want it to be cross platform
 
Old 03-05-2005, 03:28 PM   #3
Gillibiabtiag
LQ Newbie
 
Registered: Mar 2004
Posts: 23

Rep: Reputation: 15
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++.
 
Old 03-05-2005, 03:35 PM   #4
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
Tcl/Tk - has as poor typing as Basic, and is cross-platform ;)


Cheers,
Tink
 
Old 03-05-2005, 03:48 PM   #5
cudajaw
LQ Newbie
 
Registered: Feb 2005
Location: England
Distribution: Suse Linux 9.2
Posts: 13

Original Poster
Rep: Reputation: 0
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.
linuxboy@linux:~/Desktop/gtk+-2.6.4>

But glib is installed , i think i will go down the c++ route
 
Old 03-05-2005, 04:05 PM   #6
grilledsalad
Member
 
Registered: Sep 2003
Posts: 42

Rep: Reputation: 15
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.
 
Old 03-05-2005, 04:26 PM   #7
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
A programming langauge that is similar to Visual Basic or VB.net 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.
 
Old 03-05-2005, 04:53 PM   #8
grilledsalad
Member
 
Registered: Sep 2003
Posts: 42

Rep: Reputation: 15
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 =|
 
Old 03-06-2005, 12:11 AM   #9
t0ny747
LQ Newbie
 
Registered: Mar 2005
Location: Nampa, Idaho
Distribution: Fedora, Gentoox,...
Posts: 7

Rep: Reputation: 0
I would say to learn c, but is not for the light hearted
 
Old 03-06-2005, 12:16 AM   #10
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337

Rep: Reputation: 65
Thumbs up

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 www.python.org for more info. It's pretty sweet and fast. Works well with most API's around too, as GTK or even OpenGL

Last edited by Mega Man X; 03-06-2005 at 12:20 AM.
 
Old 03-06-2005, 01:25 AM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,269

Rep: Reputation: 4164Reputation: 4164Reputation: 4164Reputation: 4164Reputation: 4164Reputation: 4164Reputation: 4164Reputation: 4164Reputation: 4164Reputation: 4164Reputation: 4164
Quote:
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.
 
Old 03-06-2005, 02:37 AM   #12
RodimusProblem
Member
 
Registered: Dec 2004
Distribution: Knoppix 3.6
Posts: 135

Rep: Reputation: 15
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.
 
Old 03-06-2005, 04:52 AM   #13
cudajaw
LQ Newbie
 
Registered: Feb 2005
Location: England
Distribution: Suse Linux 9.2
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks

Thanks for all your help, i started linux a few weeks ago and found linuxquestions.org, 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
 
Old 03-06-2005, 05:13 AM   #14
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
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++
 
Old 03-06-2005, 05:28 AM   #15
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337

Rep: Reputation: 65
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:

Code:
#include <iostream>
using namespace std;

int main()
{
    cout << "Hello there!";
    return 0;
}
That's C++. Now look at python:

Code:
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
 
  


Reply


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
which programming language is used to do tcp/ip programming?? gajaykrishnan Linux - Networking 9 12-21-2012 06:16 AM
D Programming Language XsuX Programming 7 11-17-2004 09:55 PM
What programming language do you know? zikhermm Programming 11 09-15-2001 11:51 PM
Which programming language top111 Linux - Newbie 8 08-22-2001 08:21 PM
Programming Language Colonel Panic Programming 9 08-10-2001 02:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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