Sunday, April 8, 2012

Serialization

Still working on the last serialization problem for the second homework assignment, the first three were pretty easy, pretty simple, I've done much the same in the previous computer systems II class that I've taken.  Unfortunately most of my time has been taken up with Calc II homework.  It's long, tedious, and the teacher for that class is not what I would have hoped for, it's hard to understand her and she makes a good number of mistakes, which isn't conducive to me learning anything.

For the serialization, it was all pretty simple, re-arranging classes to be well-aligned (no, this isn't some psychological or therapy session for classes)  and then passing these classes into character array buffers. The only tricky part is when the class contains pointers to other objects, which is when you have to start adding in whole other objects to your serialization/deserialization.  The worst is when you start dealing with other data structures such as arrays (simplest case) and then vectors, linked lists, and etc.  Don't even get me started about maps and dictionaries.  Luckily Professor Keenan hasn't given us anything as headache-inducing as trying to serialized a dictionary of information.  That wouldn't be fun to put together on the other side of the socket!

I will post more later, but for now I have to get back to this calculus work.  I wish I hadn't been forced into taking this class... a year after taking the first one.

Yikes.

-Kevin

No comments:

Post a Comment