Part1)Project Generator for Tony Gaddis Starting out with C++ From Control Structures Through Objects

I’m really enjoying this C++ class that I’m taking which is using Tony Gaddi’s book. We’re still into the real baby stuff increment and decrement operators, but that’s ok.. I’d rather take it slow (16 weeks) and really learn some nuances about the language rather than trying to absorb it all at once. Been there done that… It doesn’t work for me.. For me anyway, reading a book or watching a video or lecture is just one component of learning. The other component is practice and developing the skill. (Time to get off the soap box and I really wish the cat would not put his ass in my face when I’m typing. I guess it’s cat speak for “I love you”. Sorry… I digress…)

The book provides the source code for all the examples on a CD. I’ve found it useful to compile the projects while studying the chapters and them hacking up the code a bit, to see if it really works the way I think it works. The parts that sucks for me is setting up the workspace and the project files to compile the projects. The first time I tried this was through the IDE which was very very tedius. Second time, I open up the workspace and project files in gedit and figure out how every thing was put together. Is used terminal session repeat functionality to setup the directory more efficiently, but it still non-value action. I would rather spend my time writing a utility that would do this automatically rather than manually. I did a quick google search to see if something like this is out there. It probably is, I just didn’t know how to ask the question.

Might as well give this a try.. If I was doing this in vb6 well, it would be a no brainer except that I’m working in Linux. Programming this in C++ is not so easy for me just quite yet.

Originally I thought I would write a portable app, since I run windows at school,work and Linux at home.. I got the impression this is doable but not quite at the skill set that I’m currently at. I found and interesting link here that discusses that. (On a side note. Once I get more proficient I bet there is a wxwidgets component that could do that).
So… for the moment, I’m scaling this back to work on my home computer and my skill sets improve, have the code get a bit more gucci.
So iInitially, Ubuntu Linux, using g++, codelite IDE.

So.. In pseudo code here is what I’m looking to do:

  1. Read appropriate CD subdirectory and put the directories/file names into arrays
  2. select chapters you wish to generator projects for
  3. generate project folders/sub-folders
  4. copy source code into the appropriate sub-folder
  5. create project files in appropriate sub-folders
  6. create a workspace files linking the appropriate project files

well…
I found some code at http://www.linuxforums.org/forum/linux-programming-scripting/26306-reading-directory-contents-files-c.html that I could hack up and get started.. Wow time flies when your having fun..

On a side note, one of the things I been thinking about is sticking Dro’s on my lathe. I wound up by 3-6 inch Digital Verniers on sale at harbor freight for 10 bucks each.. SPC output… I wonder how hard it would be to interphase with an laptop to make really big letters. I wonder if there is some cheap infra-red (tv remote connection) to get the cables out of the way… Too many ideas… too little time. Time to go to work..

This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *