Question for the Devs
-
Any of you have experience with saving serialized classes to blobs (in MySQL fwtw). I know how to do it, but I am wondering if there are gotchas that just aren't apparent at first look.
Jon Smith & Wesson: The original point and click interface Both democrats and republicans are playing for the same team and it's not us. - Chris Austin
-
Any of you have experience with saving serialized classes to blobs (in MySQL fwtw). I know how to do it, but I am wondering if there are gotchas that just aren't apparent at first look.
Jon Smith & Wesson: The original point and click interface Both democrats and republicans are playing for the same team and it's not us. - Chris Austin
The title implies that not most of us are devs ? And, it's interesting to me that you ask here instead of in the programming forums. I assume you expect a more intelligent response in here ? I was thinking this morning about the sad state of the site, there was a time when you could never go into a programming forum and see a message that was 10 hours old on the first page. And when something is asked, it's so often clueless, that people have gotten used to shooting down ANYONE who asks anything. Once it's serialised, it's just a stream of bytes, which you can store as a blob, there are no gotchas that I can think of.
Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
-
The title implies that not most of us are devs ? And, it's interesting to me that you ask here instead of in the programming forums. I assume you expect a more intelligent response in here ? I was thinking this morning about the sad state of the site, there was a time when you could never go into a programming forum and see a message that was 10 hours old on the first page. And when something is asked, it's so often clueless, that people have gotten used to shooting down ANYONE who asks anything. Once it's serialised, it's just a stream of bytes, which you can store as a blob, there are no gotchas that I can think of.
Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
Christian Graus wrote:
The title implies that not most of us are devs ?
I'm thinking that some folks may have found their way here as Sys-Admins, or Managers, or folks who were trying to get coleforget.com but were drunk.
Christian Graus wrote:
And, it's interesting to me that you ask here instead of in the programming forums. I assume you expect a more intelligent response in here ?
That was part of it, but there was also a question in my mind as to which forum was appropriate, even if I did want to take the chance of being sandwiched between two requests to do someone's homework. I found myself wishing for a forum that would not let you post unless you were gold or silver with articles published. I guess I'm elitist. :sigh:
Christian Graus wrote:
Once it's serialised, it's just a stream of bytes, which you can store as a blob, there are no gotchas that I can think of.
That's what I was thinking. Of course if you change the objec, you'll have to be able to recognize the old format and write some sort of converter - but as Caesar said as he marched back towards Rome - Hey, Rube, I con cross that bridge when I get to it.
Jon Smith & Wesson: The original point and click interface Both democrats and republicans are playing for the same team and it's not us. - Chris Austin
-
Christian Graus wrote:
The title implies that not most of us are devs ?
I'm thinking that some folks may have found their way here as Sys-Admins, or Managers, or folks who were trying to get coleforget.com but were drunk.
Christian Graus wrote:
And, it's interesting to me that you ask here instead of in the programming forums. I assume you expect a more intelligent response in here ?
That was part of it, but there was also a question in my mind as to which forum was appropriate, even if I did want to take the chance of being sandwiched between two requests to do someone's homework. I found myself wishing for a forum that would not let you post unless you were gold or silver with articles published. I guess I'm elitist. :sigh:
Christian Graus wrote:
Once it's serialised, it's just a stream of bytes, which you can store as a blob, there are no gotchas that I can think of.
That's what I was thinking. Of course if you change the objec, you'll have to be able to recognize the old format and write some sort of converter - but as Caesar said as he marched back towards Rome - Hey, Rube, I con cross that bridge when I get to it.
Jon Smith & Wesson: The original point and click interface Both democrats and republicans are playing for the same team and it's not us. - Chris Austin
If we're talking .NET, my experience is if you add new properties to an object, an old serialised file will load just fine, and set default values for those properties. We've added to our preferences many times, and we just set the right default and it works.
Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
-
If we're talking .NET, my experience is if you add new properties to an object, an old serialised file will load just fine, and set default values for those properties. We've added to our preferences many times, and we just set the right default and it works.
Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
Kewl. Thanks!!! Now I have one more request: I have to work on a project which converts given flat files to XML using the XML serialization method. Can you create a demo project, record it on CD, and send it to me overnight express, tonight?
Jon Smith & Wesson: The original point and click interface Both democrats and republicans are playing for the same team and it's not us. - Chris Austin
-
Christian Graus wrote:
The title implies that not most of us are devs ?
I'm thinking that some folks may have found their way here as Sys-Admins, or Managers, or folks who were trying to get coleforget.com but were drunk.
Christian Graus wrote:
And, it's interesting to me that you ask here instead of in the programming forums. I assume you expect a more intelligent response in here ?
That was part of it, but there was also a question in my mind as to which forum was appropriate, even if I did want to take the chance of being sandwiched between two requests to do someone's homework. I found myself wishing for a forum that would not let you post unless you were gold or silver with articles published. I guess I'm elitist. :sigh:
Christian Graus wrote:
Once it's serialised, it's just a stream of bytes, which you can store as a blob, there are no gotchas that I can think of.
That's what I was thinking. Of course if you change the objec, you'll have to be able to recognize the old format and write some sort of converter - but as Caesar said as he marched back towards Rome - Hey, Rube, I con cross that bridge when I get to it.
Jon Smith & Wesson: The original point and click interface Both democrats and republicans are playing for the same team and it's not us. - Chris Austin
-
Kewl. Thanks!!! Now I have one more request: I have to work on a project which converts given flat files to XML using the XML serialization method. Can you create a demo project, record it on CD, and send it to me overnight express, tonight?
Jon Smith & Wesson: The original point and click interface Both democrats and republicans are playing for the same team and it's not us. - Chris Austin
Its been awhile, working in Linux and C++ now, but I believe that .NET is using reflection and the properties defined to rehydrate. So any data you want to restore has to have a property for it with getters and setters defined. But I could be wrong.
This statement is false