LinuxQuestions.org
Review your favorite Linux distribution.
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


Reply
  Search this Thread
Old 02-04-2002, 11:20 PM   #1
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Rep: Reputation: 30
A good app building language


what is a good language to start learning where you could maybe start writing/hacking small gui programs for Linux?
 
Old 02-04-2002, 11:24 PM   #2
tiamat
LQ Newbie
 
Registered: Jan 2002
Location: Sweden
Distribution: Redhat
Posts: 17

Rep: Reputation: 0
Perl and C++
 
Old 02-04-2002, 11:48 PM   #3
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Original Poster
Rep: Reputation: 30
Now I was under the impression that perl was a scripting language... can it also do gui apps?
 
Old 02-05-2002, 02:31 AM   #4
tiamat
LQ Newbie
 
Registered: Jan 2002
Location: Sweden
Distribution: Redhat
Posts: 17

Rep: Reputation: 0
Quote:
Originally posted by Chijtska
Now I was under the impression that perl was a scripting language... can it also do gui apps?
Its a scripting language. So is VB And yes, you can do guis with perl. One of the most common gui's is dhtml acctually.
 
Old 02-05-2002, 08:43 AM   #5
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Original Poster
Rep: Reputation: 30
errr sorry yur right... vb is a scripting lang... thanks for the help -- sorry for the goof
 
Old 02-11-2002, 07:34 AM   #6
elist
Member
 
Registered: Dec 2001
Location: MK - UK
Distribution: Mandrake
Posts: 94

Rep: Reputation: 15
Why not start writing small gui apps using Java so they can be used on any platform? It's a good language to learn, teaches good concepts and I like the fact that I can just download an application and run it on linux or windows (when it's done right).
 
Old 02-11-2002, 07:49 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
Quote:
Originally posted by elist
Why not start writing small gui apps using Java so they can be used on any platform? It's a good language to learn, teaches good concepts and I like the fact that I can just download an application and run it on linux or windows (when it's done right).
]

why not? cos swing is horrible! i personally avoid java programs at all costs. hogs memory and goes wrong hell of a lot. if i want to use a certain program, i find a proper version in C or whatever, using a decent gui toolkit. just my opinion of course.

whilst swing is a very well designed toolkit, and is logical to program in, i think gtk certainly rivals it in tems of power.

as far as portability goes, it'll be interesting to see what the first wave of .NET apps can do, by all acounts it'll make java redundant, whilst C and such will continue to have lotrs of applications at lower levels, as well as the high level ones too.
 
Old 02-11-2002, 01:34 PM   #8
jISV
Member
 
Registered: Feb 2002
Location: England
Distribution: MDK8.2
Posts: 128

Rep: Reputation: 15
.NET will just end up like VB - you'll have just about anyone doing it, it won't be a complete solution and you'll need to use other tools to fill in the gaps.
I've not done any work gui work with C, it's all been logic processing, yes it is good for that, but in my opinion the power of it causes it to be a good waste of development time and money. I don't think Java will become redundant because of .NET and with the uptake and investment business have made in web components using EJB's backside, this will support it. This backend framework is just too good. Swing can be a hassle and may have some performance problems, but these are almost gone - recently I've used applications that are really nice, it takes some convincing they are Java.
Take in mind that my comments are based on building business applications, not just software tools, where other things will surely be better.
Whatever technology best does the job you need to do the job will be best, Forte, Java, C, Perl, korn shell scripting..
 
Old 02-14-2002, 07:35 AM   #9
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
Java is a kludge of a language!

There is really good evidence to suggest that companies should not write programming languages.

Creeping featurism ('Feeping creaturism') is the only word really needed to justify this generalisation. Java is the incarnation of taking a bit of this and a bit of that and ending up with compromise.

'Cross platform' is a sliding scale not an absolute.

C programs were the first 'cross platform' programs. Wine relies on this.

Hahhhh. That's better.

Bert
 
Old 02-14-2002, 07:57 AM   #10
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
I'm now going to annoy all of you. You could try kylix.
 
Old 02-14-2002, 12:56 PM   #11
kervin
Member
 
Registered: Jan 2002
Location: Melbourne, FL.
Distribution: redhat
Posts: 168

Rep: Reputation: 31
You have a quite a options. A large number of windowing toolkits have support for Linux. Ultimately, it comes down to what language you want to work with.

Here are a few.

QT - Uses C++, used in KDE applications and others, http://www.trolltech.com/
GTK - Uses C, used in GNOME apps and others, http://www.gtk.org/
WxWindows - C++, Cross platform GUI toolkit, http://wxwindows.org/
JAVA - http://www.java.sun.com/
lesstiff - C, Motif compatible library. Old but useful since a lot of software out there is written uses motif http://www.lesstiff.org/
GTK-- - C++ GTK bindings, write GTK applications in C++

Now for scripting languages

Mozilla - Uses javascript. This is probably for the adventurous for now, but uses mozilla you can create apps with javascript and the XML markup language, XUL. Nice but beta for now
Perl/TK - Write GUI apps in perl. http://perltk.org/
Python/TK - Write GUI apps in python http://python.org/
Tcl/TK -
perl/GTK - perl GTK bindings, write GTK applications in PERL

There are many others.

But think of at least these...
(i) What language do you what to work with?
(ii) Do you want this program to run on many platforms? UNIX and Windows?
(iii) Does the GUI have to be pretty? Themeable?

My opinions...

WxWindows, Java, and most of the scriptting languages shine in terms of cross-platform support. Not that the others aren't cross platform.

Scripting languages excel in terms of ease of use. There's no memory management, etc to deal with.

Anything with a name with "/TK" in my mind is ugly. They all uses motif style widgets, which are horrible. lesstiff and motif hence are also look repulsive.

If you can get away with working with a scripting language, then do it.

--Just my $0.02 cents on the matter
 
Old 02-14-2002, 10:42 PM   #12
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Original Poster
Rep: Reputation: 30
the reason i ask is that ive come to a decision fork i the road..what path to take for my cis degree... programming and devloping or networking... personally i wish i could do both but i really feel like to have a real job ill need to do the hard stuff: programming
 
Old 02-14-2002, 11:50 PM   #13
Malicious
Member
 
Registered: Jan 2002
Location: Galveston Island
Distribution: suse, redhat
Posts: 208

Rep: Reputation: 30
Quote:
Originally posted by Chijtska
the reason i ask is that ive come to a decision fork i the road..what path to take for my cis degree... programming and devloping or networking... personally i wish i could do both but i really feel like to have a real job ill need to do the hard stuff: programming
Ah, the real question... It always boils down to programming or something else; networks, admin, testing, etc..

Take some sage advice from an old-timer. All of those jobs will involve programming at some level and if you have learned good program design and implementation principles, it will definitely help in any of those career choices. I'm not talking about designing and implementing large applications, I'm talking about designing a program to accomplish a task. It might be a 3 line shell script or a 10,000 line log analysis program.

Learn to program. And if you never write a line of code, it will help you understand the tools that you work with.
 
Old 02-15-2002, 07:50 AM   #14
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Original Poster
Rep: Reputation: 30
Thanks for the advice... you can often tell a difference between the students who follow the network only path. I have asked them why they chose networking and they often but not always will say the programming stuff was too hard (taking the path of least resistance).

Right now, I already have a Net+ certification and hopefully that will give me some credibility as far as that goes...

I still have the strong desire to know what makes Linux and most of the apps written for it tick. The reason is I really have this feeling that once businesses see (and they will, I have no doubt) how much less expensive and more reliable than the microsft products out there now, they will have no choice...

Captitalism operating philosophies (and good old common sense) say that if I can find a man to do what someone else is doing and better--plus, the bonus that he will work for less money--then I will have no choice but to go with him regradless of whether I feel comfortable with his ways. Results are all that matters and for good reason.

True, some won't take advantage and they will either sink or barely keep afloat.
 
Old 02-15-2002, 12:41 PM   #15
kervin
Member
 
Registered: Jan 2002
Location: Melbourne, FL.
Distribution: redhat
Posts: 168

Rep: Reputation: 31
Quote:
Originally posted by Malicious

Take some sage advice from an old-timer. All of those jobs will involve programming at some level and if you have learned good program design and implementation principles, it will definitely help in any of those career choices.
This is *so* true. I keep telling students that and they look at me like I'm crazy.

No matter what field of computer science you take, learn the principles of programming. Learning a language or two relevant to your area is even better.

I'm a network admin right now, and we're using perl scripts to poll routers for SNMP info, for stuff like IP conflicts, etc. These scripts aren't difficult at all, but make the task a lot easier.

In system administration we've used thousands of lines of scripts to tie services that don't want to speak to each other, etc.

Even if you don't program directly, you may need an understanding of programming to figure out why a system is malfunctioning.
 
  


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
Having problems Building OpenGL App on Mandrake 10.1 Official CelticBlues Mandriva 2 11-18-2005 11:06 AM
good language for beginners boxerboy Programming 24 10-27-2005 04:12 AM
Kernel building app? flamesrock Linux - Software 1 01-02-2005 04:46 PM
Seeking for a good scripting language... Frank Programming 11 01-02-2004 10:35 PM
A good language to start with. KptnKrill Programming 77 07-21-2003 04:20 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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