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.
Some time ago I decided I need some more hands-on experience in programming. Searched the web, found a lot of tutorials with various degrees of usability for a novice (which I still am) and created a little bash script for starting my wireless card on Debian Etch at boottime. I was thrilled when I got that to work Later I wrote another script, automating starting up a virtual machine with Qemu and giving it some more RAM then the default 256 MB. In the mean time, I purchased a book on C++ programming by Bjarne Stroustroup, translated in my native language (Dutch). I must say that it's very abstract and I haven't finished it yet (not even halfway) because of this.
Can you recommend books, online howto's, etc for a novice to start understanding how to program? I have a basic understanding on statements, variables, loops, etc as I used to read books on microcontrollers (PIC, 8051 derivatives) and their assembly languages. Not that I ever wrote a program for a microcontroller, but it did teach me some basics of how hardware works on a bit/byte level.
I'm working on Debian Etch (no M$ crap here) but I prefer learning "platform independent" programming so porting the application I have in mind to another arch or OS could be relatively simple. The program also requires some real-time detection on a regular base, so it should be fast.
It's difficult to know what to recommend, because I don't know what you've seen already, and how what you've seen already is insufficent. I might be suggesting something you've already tried (in which case, please forgive this answer), but if you haven't google this:
Code:
C++ tutorial
I found Bjarne Stroustrup's book helpful, as you did. (For some perverse reason, I always want to call him Bjarne Bootstrap.) That book has zillions of exercises. One good thing about these exercises is that they help you get your feet wet, so the concepts don't seem so abstract. So if you haven't tried the exercises, try some in the earlier chapters that might have seemed simpler to you. That should make you more ready to absorb the later chapters. I think.
Thx for your reply. That search string was exactly what I used initially and it yielded many hits of varying degrees of usability. I'll have another look at the book and try some of the exercises. I skipped those as most of the time I read the book (during brakes at work) there wasn't a suitable computer around for trying it
Hmm. Now that I read my own posting, it looks like I should clarify. The hardcopy version is not free. I suppose that might be obvious, but the wording of my original post might have sounded to some as if the hardcopy was free. Nope, just the online version. I find the combination of searchable online version + printed hardcopy (with scribbled notes and read-anywhere capability) is the perfect resource format.
--- rod.
I prefer learning "platform independent" programming so porting the application I have in mind to another arch or OS could be relatively simple. The program also requires some real-time detection on a regular base, so it should be fast.
Check out Erlang. The language was originally invented at Ericsson for use in telephone switches. It makes a lot of things (concurrency, soft-realtime, error-recovery) very easy. It also runs on a virtual machine, so the same source code you write will work anywhere the VM runs. You can also byte-code and native compile Erlang. There are some tutorials online, plus manuals on the Erlang website, and the Pragmatic Programmers have a book coming out about it. I'm no expert, but having written my website in Erlang, I must say its a fascinating language. I hope to dig deeper into the concurrency, distribution, and error features this fall when I have my web applications class.
Last edited by taylor_venable; 06-12-2007 at 11:31 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.