LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 04-06-2003, 02:11 PM   #1
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Rep: Reputation: 30
want to write a simple app


I want to learn something new. i have always had a curiosity about programming. what would it take to come up with a simple program with a GUI that would gather info about your partitions and cdroms and give you options on how you want your system to use them. mounted or not mounted, permissions where they get mounted, etc. and will write this info to your /etc/fstab file. and then do a mount of them. i just want to do this for a learning only, maybe something out there already exists that doesn't matter to me. Mandrake had something like this built into it, its been a while but it mounted your partitions for you it was kind of a cool idea.

i have not even the basic understanding about programming. What programming language would i use, i have no idea. would it be a combination of shell scripting and say python?

I heard python is a good language to learn for newbies because of the amount of resources and people using it.

excuse my ignorance,
AD
 
Old 04-06-2003, 02:22 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
it's up to you what langauge you pick... as you're basically going to be running a bunch of external commands i'd suggest a scripting language like perl rather than a programming lanaguage like c or java. you certainly wouldn't want to combine langauges, that would be a right old mess. personally i'd say perl and gtk for a UI.
 
Old 04-06-2003, 02:24 PM   #3
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Python is great, and wxPython makes writing apps very easy too. And the use of whitespace instead of {} brackets forces you into writing neat code from the off.

I wouldn't want to be messing with my vital OS files for my first program
 
Old 04-06-2003, 02:33 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
python is great, but quite different from other languages and doesn't give you too great a founding in more conventional languages, meaning what you learn isn't as portable as what you'd pick up from perl, c etc...
 
Old 04-06-2003, 02:41 PM   #5
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Original Poster
Rep: Reputation: 30
hey thanks acid and proud. i would like to make sure that what ever i take the time to learn that its a flexible language that isnt just limited to one thing or another. python or perl sounds like a toss up. if i use python or perl then i will still need to learn to use gtk it looks like.

thanks again,
AD
 
Old 04-06-2003, 02:47 PM   #6
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
wxPython/wxWindows uses a wxGTK library for it's Linux gui if I'm not mistaken, so you only have to learn to use wxPython, and that'll work gtk+ for you

Dunno anything about Perl apps with any gui :S
 
Old 04-06-2003, 03:04 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
i think wxwindows is horrible, clever cross-platform gubbins or not. i'd say use gtk any day. having said that though i don't knw about the state of the gtk2 bindings for python and i know it's not even beta yet for perl...
 
Old 04-06-2003, 03:08 PM   #8
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Original Poster
Rep: Reputation: 30
oooowwweeee looks like i better go buy some more books. gotta love barnes&noble.

 
Old 04-08-2003, 05:24 AM   #9
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Rep: Reputation: 30
Re gtk2 python bindings, they exist and work well (in my limited experience of them )

Alex
 
  


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
how to write a simple http client suguanqun Programming 2 11-04-2005 12:57 AM
failing to compile a simple glade app florg Programming 1 08-06-2005 04:25 AM
Script or Simple App to Create HTML Table Populated With Images infidel Linux - Software 14 06-07-2005 02:08 AM
Trying to build simple app to notify about changes in small string... Help? Mamour Programming 5 08-23-2003 04:05 PM
simple faxing app? gongli Slackware 1 08-12-2003 06:32 PM


All times are GMT -5. The time now is 03:50 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration