LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 05-22-2009, 08:31 AM   #1
01micko
Member
 
Registered: Mar 2009
Location: Gold Coast, Queensland, Australia
Distribution: Puppy, Slackware
Posts: 92

Rep: Reputation: 18
"Genie" programming language, want to learn...


Hello all.

I'll start with my objective. I intend to create simple gui apps for linux.

I know a little bash and can create a small gtkdialog app. What i want to do is expand and improve on this, thus I need to learn to program. But in what language?

Genie (http://live.gnome.org/Genie) appeals to me. Why? Small executables, the compiler converts code to C, it's new.

Where do I start? I know very little. Python? I've heard it has similar syntax. C? ... I'm asking!

All help appreciated.

Cheers.
 
Old 05-22-2009, 01:26 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
My suggestion is learn a language you expect to get long term use out of. There are dozens of obscure little languages out there that while functional don't help a lot in the long run. Get a firm base in C/C++ and you can pickup almost any other language quickly.

There are a ton of good tutorials for almost any programming language, just google the language name and tutorial. You might have to narrow results if you're seeing a lot of something non-applicable, but thats relatively easy to do.

lmgtfy
 
Old 05-22-2009, 02:05 PM   #3
soleilarw
Member
 
Registered: Apr 2009
Posts: 107

Rep: Reputation: 19
If you want to get a job as a programmer, then it's usually C/C++, Java or PHP these days (depending on the company profile).
You could fill a niche by going for some mature languages like Python or Ruby.
You could fill a niche by maintaining 'historical' code written in Cobol, Fortran, Modula, Oberon, Pascal and a few more.
No true benefit from Basic or Turtle, no real playground for HyperTalk and similar once-hailed stuff.
Only for academic research toy around with D, Dylan and all the other neat little code creating concepts.

For a founded choice of a programming language define a target project based on honest interest or an eventual business/job opportunity and make sure that you can get enough good documentation, tutorials and sample code for it. Quite often a target project already defines what language to use. When the briefing says 'apache - mysql - php' then you already know.

Linux Archive

Last edited by soleilarw; 06-18-2009 at 04:09 AM.
 
Old 05-22-2009, 03:54 PM   #4
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 510

Rep: Reputation: 53
As you've already started with Gtk, you'll have to decide wether you want to write GUI apps with Gtk in C or if you prefer one of the Gtk bindings like C++, Python, Perl, Ruby or even PHP. Lua should also work.

Really looks like Python to me...

(I'm SO glad that we have yet another programming languages to write the same old Gtk stuff instead of actually introducing long awaited new Gtk features... )

For smaller apps I really wouldn't bother with C. (And I don't. )
 
Old 05-22-2009, 05:05 PM   #5
01micko
Member
 
Registered: Mar 2009
Location: Gold Coast, Queensland, Australia
Distribution: Puppy, Slackware
Posts: 92

Original Poster
Rep: Reputation: 18
Thank you for all replies so far.

I will add this. I do not intend to become a professional programmer, but you never know. I am in my mid 40's, with no IT education and just want to satisfy myself.

Keep them coming!

Cheers
 
Old 05-24-2009, 08:51 AM   #6
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
I had always difficulties in designing GUI programs, it never seemed to happen that button events triggered the correct behaviour, or that fields got updated when I wanted that.

Until I discovered Tcl/Tk which made me produce application within two hours after I discovered Tk. That is called a smooth learing curve! The most difficult part is to get the widgets exactly where you want them, and even that is not terrible complicated.

Not everyone is apt to learn Tcl and some (many?) find it outdated and superseded by other langauges. As far as I know Perl/Tk exists as well as Python/Tk and Ruby/Tk, and maybe others.

As long as you don't do repetitive calculations, GUI scripting is not slower than compiled code. Building the actual GUI is still compiled code, the script part is only to tell what to do.

jlinkels
 
Old 06-12-2009, 10:09 PM   #7
telemeister
Member
 
Registered: Dec 2007
Location: Brisbane Australia
Distribution: Slackware
Posts: 63

Rep: Reputation: 16
For a relatively inexperienced programmer I would recommend Python.
A number of addons are available for GUIs. I have used TkInter.

Extremely easy to learn, but very powerful, with plenty of scope for future development of
more complex programs.

Steve
 
  


Reply



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
Socket Programming making use of "select()" and "writefds" johncsl82 Programming 10 11-13-2011 12:27 PM
What is the best programming language to learn jax8 Programming 25 04-04-2010 10:21 AM
"The C Programming Language" by K&R, can't get a program working, section 1.5.2 Romanus81 Programming 9 11-28-2008 01:01 PM
Which Programming Language to Learn? BlahBlah_X Programming 6 06-19-2007 08:12 AM
Is K&R's "The C Programming Language" outdated? frankie_DJ Programming 3 09-21-2006 07:39 AM

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

All times are GMT -5. The time now is 08:13 PM.

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