Tuesday, November 17, 2009

Funktion team members

Anton is still in the course

Can't compile

I tried to work on assignment 2. io_menu has a lot of errors, the person who is assigned to the task committed it with errors! You know who you are and I'm calling you out!

Btw. Just j/k, I'm sure this sort of thing happens all the time. And yes I already messaged mr./ms. io_menu about it not compiling

anton

Wednesday, November 11, 2009

IO_edit trublez

Sent this to Jonathan today I'm hitting (naturally) on some rocky road:

Jonathan,

I'm currently having trouble with the bold. For the constructor it states, if it is framed then pass row+1, col+1 to IO_Field. I'm getting errors saying it cannot pass pointer. The other trouble im having is trying to retrieve the value for top in io_frame. As you are aware, top is private :$. so I called the function getTop but I can't do that. We'll talk tomorrow!


//pass to IO_Field Constructor
//if (framed) {
// IO_Field::IO_Field(row+1, col+1);
//}
//else
// IO_Field::IO_Field(row, col);
}

void IO_Edit::display() const {
int Top;
Top = _owner->getTop()+0;

}

Sunday, November 8, 2009

IO_Edit

November 8, 2009

Updated everything onto the repository. Now I'm trying to code

IO Edit PseudoCode:

Create an array of 'maxdatalen + 1 chars' and set IO_Field::_data to point to it

Constructor:

+ "row", "col", and "frameChars" pass directly to the Frames class "top" "left" and "framechars". pass width of (fieldlen + 2) and height of (fieldlen + 3)
+ pass to IO_Field constructor. if framed false: row and col. if framed true: row+1 and col+1

Destructor:

+ if object is marked to be dynamic (it should unless i did the 2nd type of constructor) delete[] character content of data in IO_Field

Display():

+ if IO_Edit is framed call IO_Frame display(). Use: _owner->getTop(), _owner->getLeft() as topOffset and leftOffset arguments.
+ call ciol's io_display() function passing getRow() and getCol() and fieldlen from IO_Field and IO_Edit, respectively

Edit():

+ call ciol's io_edit with corresponding data from IO_Edits attributes
+ ignore Owner argument
+ return value returned by ciol's io_edit

Editable():

+return true;

Set():

+copy incoming str into _data (in IO_Field) up to 'maxdatalen' characters (note: if using strncpy() make sure string is null terminated)

Issue Solved

I had redefined the defaults in the .h and .cpp files.

it should look like this in the .cpp file

IO_Edit::IO_Edit(char* str, int row, int col, int fieldlen,
int maxdatalen, int* insertmode,
bool framed, const char* frameChars)

Issue

I'm getting this error:

rror C2572: 'IO_Edit::IO_Edit' : redefinition of default parameter : parameter 7
1> c:\users\koko\documents\oop344 assignment 2. antons repository\trunk\prj\io_edit.h(12) : see declaration of 'IO_Edit::IO_Edit'

hrmph

it's the consturctor of the class. but ehy?

Friday, October 30, 2009

Open source is communism

Why does that sound so bad? I have read the manifesto and it's pretty good! (for the record I am not a communist though)

Anyways I attended the Open Source Symposium at Seneca today and it was an eye opening experience. There were members from all over the continent speaking about their experience on their open source project. The most interesting speaker was Khalid Baheyeldin. His lecture was on 'Open Source: For fun and for Profit'. Obviously being a student I cannot help but be interested in working anywhere other than in a lousy cubicle! (I still believe in the american dream, even in the age of obama socialism!).

Essentially to earn an income from open source (and this also goes with what Dru Lavigne spoke about) you're going to have to pay your dues. Meaning to spend a year or two volunteering hours on an open source project you're passionate (to gain reputation). An interesting point to note is that you won't gain as much reputation if you did the same for proprietary software (such as if you worked at microsoft on some program) unless you've made the program yourself. Dru pointed out that you've known you made it when work starts finding you, and that you've really made it when you start rejecting work for other more interesting work.

There are a lot of people looking for freelancers, drupal.org has forums with people looking to contract. Also another enlightening moment was when the speakers mentioned that the community needs marketers, designers, and writers. So it's not just coders that are involved in it.

One thing I found surprising was that there were no speakers on open hardware. My passion is in electronics and I would love to meet and learn from people in that side of the community/industry.