On Sunday, July 26, 2015 at 7:05:16 PM UTC-4, John English wrote > > > Well, I'm basically going to try and rewrite the Java code in JS rather > than redesigning it all. However, I've had a play using Node.js and so far > I can save and reload with the proper "class" (prototype) -- a bit messy as > I need to set a "type" field in every constructor to do this, and bodging > "transient" fields with naming conventions so I can exclude them from the > JSON -- so I'm hopeful it won't be too stressful. The code/data separation > is basically much like Java -- class loaders load class code, serialization > handles the data. >
Sounds super reasonable. That's a pretty normal way to encode class information into JSON. And many thanks for the other tips, and a very helpful reply! > Glad to help! And good luck! Aria -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/13d7e72e-a984-4639-891b-703d824724fc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
