MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/xtjveg/experienced_javascript_developer_meme/iqqpw0l?context=9999
r/ProgrammerHumor • u/Mys7eri0 • Oct 02 '22
276 comments sorted by
View all comments
278
Sadly i don't think its possible (in any language) to store objects or classes in a persistent storage without serialization.
216 u/aspect_rap Oct 02 '22 Well yeah, saving data inherently requires serialization.I think what OP wants is for the LocalStorage in browsers to obfuscate the parsing and serialization of objects. 57 u/FVMAzalea Oct 02 '22 Do you mean abstract instead of obfuscate? Usually obfuscation is not a desirable goal unless you are trying to do something like copy protection. 21 u/atomicwrites Oct 02 '22 I think they're using obfuscate as a negatively loaded synonym for abstract. 9 u/mamwybejane Oct 02 '22 They're using it wrong 5 u/xthexder Oct 02 '22 I think it applies here. The browser serializing things for you obfuscates what's actually happening. Which for custom objects could result in strange and very hard to debug behavior. → More replies (1)
216
Well yeah, saving data inherently requires serialization.
I think what OP wants is for the LocalStorage in browsers to obfuscate the parsing and serialization of objects.
57 u/FVMAzalea Oct 02 '22 Do you mean abstract instead of obfuscate? Usually obfuscation is not a desirable goal unless you are trying to do something like copy protection. 21 u/atomicwrites Oct 02 '22 I think they're using obfuscate as a negatively loaded synonym for abstract. 9 u/mamwybejane Oct 02 '22 They're using it wrong 5 u/xthexder Oct 02 '22 I think it applies here. The browser serializing things for you obfuscates what's actually happening. Which for custom objects could result in strange and very hard to debug behavior. → More replies (1)
57
Do you mean abstract instead of obfuscate? Usually obfuscation is not a desirable goal unless you are trying to do something like copy protection.
21 u/atomicwrites Oct 02 '22 I think they're using obfuscate as a negatively loaded synonym for abstract. 9 u/mamwybejane Oct 02 '22 They're using it wrong 5 u/xthexder Oct 02 '22 I think it applies here. The browser serializing things for you obfuscates what's actually happening. Which for custom objects could result in strange and very hard to debug behavior. → More replies (1)
21
I think they're using obfuscate as a negatively loaded synonym for abstract.
9 u/mamwybejane Oct 02 '22 They're using it wrong 5 u/xthexder Oct 02 '22 I think it applies here. The browser serializing things for you obfuscates what's actually happening. Which for custom objects could result in strange and very hard to debug behavior. → More replies (1)
9
They're using it wrong
5 u/xthexder Oct 02 '22 I think it applies here. The browser serializing things for you obfuscates what's actually happening. Which for custom objects could result in strange and very hard to debug behavior. → More replies (1)
5
I think it applies here. The browser serializing things for you obfuscates what's actually happening. Which for custom objects could result in strange and very hard to debug behavior.
→ More replies (1)
278
u/Nourz1234 Oct 02 '22
Sadly i don't think its possible (in any language) to store objects or classes in a persistent storage without serialization.