Looking for tutorials / books (first-time developer)
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Looking for tutorials / books (first-time developer)
I've worked a lot with PHP and web-related scripts/langs but here is the new project i'd like to begin.
When I was showing my father how to burn a CD, it was rather confused (we used GnomeToaster). I looked at the other burning front ends and I didn't like those either (well, he didn't). His big thing was wanting to burn Audio CDs and the interfaces these front ends supplied jsut weren't cutting it and I myself could use a better looking app. (yes, im all about the looks too).
So this is what I'd like to do; I'd like to create a front end to cdrecord using GTK (im a faithful Gnome user) also interfacing with ogg/mp3 libs to do decoding but I have a few questions before im even capable of doing some decent planning.
Fist, more times then not, applications are writtne under C. for a simple front end, would C do me good? I was told PHP is similar to C (as basic style, i understand there differences). Now for the widgets / graphics n such.. or more so the 'interface' itself would require GTK. I understand what GTK is (somewhat) but on the developers side, are these libraries you interface with, within your C code? what languages cna take advantage of GTK?
Now.. assuming I get all this covered, anyone have a decent book/site/tutorial on beginners app development for GNU/Linux? I've only worked on web-realted software. So the 'file structure', compiling, etc. is rather blury to me. As an end user I can compile and understand whats what but developer side is completely new (perhaps it's the same, but this i do not know.
Thank you. I sound newbish but I have good intentions
alright - been reading the Gnome Developers site...
I think starting off with a Hello World window would be a MUCH better choice ATM I saw a GTK book at the local bookstore but it's on 1.2 er something - any recommendations?
I have no experience with GTK myself, but I did an Amazon search for "gnome programming", and it looks like there are quite a few good books on the subject. The focus will be C and/or C++ programming with the GTK+ libraries.
GnomeToaster is the best for burning data and music cd's. As far as I know you put in the cdr or cdrw and blank the cd / clear disk, than you add / drag the files off of your file system list, and drop them onto the area with the 'Folder', and than select the disk button and press record, which burns the cd. I tried to use xcdroast and didn't have any luck. What a piece of garbage with no useful instructions.
If you want to burn ISO images than you can use cdrecord on the command line:
cdrecord -v -speed=4 -dev=0,0,0 filename.iso
You don't need to blank the cd or anything. Find the correct codes for -dev by first running: cdrecord -scanbus
At any rate, what I'm getting at is that there are really two programs that these applications are fron ends for, one is cdrecord and the other is mkisofs which makes the file system on the cd. So it's not just cdrecord by itself.
Get a book on GTK like the Sams book or any one of the others. The Sams book appears to be decent, but than learn off of the actual website for the most up to date tutorials and class listings < www.gtk.org >.
I think a trip to the book store is needed and I found lots of info at gnome.org and gtk.org (ty for gtk's url) I will study. I jumped way ahead of myself here nad wish i could retitle this theard: "hello world - GTK+ development n00b"
I think that your first task in your CD program is to learn C.
First you need a book on learning to program in C. The book that I learned on has disappeared years ago. Perhaps some of the college students on the forum can recommend a good beginning C textbook.
The next two books that I recommend for your project are:
Linux Programming Unleashed, published by Sams
GTK+ Programming in C, written by Syd Logan
To change the subject: One of the beauties of Open Source is that people do not have to continually rewrite programs from scratch. Rather than writing a CD burn program from scratch, I suggest that you select one of the existing programs and improve it. You can save a lot of time by building on top of existing code.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.