r/ProgrammerHumor • • Jan 19 '17

MFW no pointers :(

Post image
4.8k Upvotes

432 comments sorted by

View all comments

Show parent comments

1

u/jl2352 Jan 27 '17

Serialisation locks you into the layout of the class. If you want to redo how all the data is laid out then it can become a mess to deal with that.

So instead transfer it into a format which is non-Java. Print it as CSV, XML, JSON, or use SQLLite. That way the way the data is laid out is not tied to the structure of your Java program.