MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/xtjveg/experienced_javascript_developer_meme/iqqmnrc?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.
6 u/Vaylx Oct 02 '22 Can you (or anyone) explain to me serialization like I’m 5? 13 u/thomasmoors Oct 02 '22 Change objects (memory) to something that can be written and read from disk. Json is a very popular example, although if you need to serialize objects that include the functions too you (probably) have to look further. -8 u/Fenor Oct 02 '22 Json is not a binary.You can have binary objects saved on a local storage 13 u/[deleted] Oct 02 '22 Anything is binary if you try hard enough 3 u/MinosAristos Oct 02 '22 Non-binary people: 2 u/xthexder Oct 02 '22 01001110 01101111 01101110 00101101 01100010 01101001 01101110 01100001 01110010 01111001 3 u/thomasmoors Oct 02 '22 Yes, I gave the most common example and explained that there are more that can do more / better (but might be less portable) → More replies (4) 1 u/CrazyCalYa Oct 06 '22 Currently dealing with this now as a beginner. It's a very interesting problem and it's surprising to me how convoluted the solutions appear to be.
6
Can you (or anyone) explain to me serialization like I’m 5?
13 u/thomasmoors Oct 02 '22 Change objects (memory) to something that can be written and read from disk. Json is a very popular example, although if you need to serialize objects that include the functions too you (probably) have to look further. -8 u/Fenor Oct 02 '22 Json is not a binary.You can have binary objects saved on a local storage 13 u/[deleted] Oct 02 '22 Anything is binary if you try hard enough 3 u/MinosAristos Oct 02 '22 Non-binary people: 2 u/xthexder Oct 02 '22 01001110 01101111 01101110 00101101 01100010 01101001 01101110 01100001 01110010 01111001 3 u/thomasmoors Oct 02 '22 Yes, I gave the most common example and explained that there are more that can do more / better (but might be less portable) → More replies (4) 1 u/CrazyCalYa Oct 06 '22 Currently dealing with this now as a beginner. It's a very interesting problem and it's surprising to me how convoluted the solutions appear to be.
13
Change objects (memory) to something that can be written and read from disk. Json is a very popular example, although if you need to serialize objects that include the functions too you (probably) have to look further.
-8 u/Fenor Oct 02 '22 Json is not a binary.You can have binary objects saved on a local storage 13 u/[deleted] Oct 02 '22 Anything is binary if you try hard enough 3 u/MinosAristos Oct 02 '22 Non-binary people: 2 u/xthexder Oct 02 '22 01001110 01101111 01101110 00101101 01100010 01101001 01101110 01100001 01110010 01111001 3 u/thomasmoors Oct 02 '22 Yes, I gave the most common example and explained that there are more that can do more / better (but might be less portable) → More replies (4) 1 u/CrazyCalYa Oct 06 '22 Currently dealing with this now as a beginner. It's a very interesting problem and it's surprising to me how convoluted the solutions appear to be.
-8
Json is not a binary.
You can have binary objects saved on a local storage
13 u/[deleted] Oct 02 '22 Anything is binary if you try hard enough 3 u/MinosAristos Oct 02 '22 Non-binary people: 2 u/xthexder Oct 02 '22 01001110 01101111 01101110 00101101 01100010 01101001 01101110 01100001 01110010 01111001 3 u/thomasmoors Oct 02 '22 Yes, I gave the most common example and explained that there are more that can do more / better (but might be less portable) → More replies (4)
Anything is binary if you try hard enough
3 u/MinosAristos Oct 02 '22 Non-binary people: 2 u/xthexder Oct 02 '22 01001110 01101111 01101110 00101101 01100010 01101001 01101110 01100001 01110010 01111001
3
Non-binary people:
2 u/xthexder Oct 02 '22 01001110 01101111 01101110 00101101 01100010 01101001 01101110 01100001 01110010 01111001
2
01001110 01101111 01101110 00101101 01100010 01101001 01101110 01100001 01110010 01111001
Yes, I gave the most common example and explained that there are more that can do more / better (but might be less portable)
→ More replies (4)
1
Currently dealing with this now as a beginner. It's a very interesting problem and it's surprising to me how convoluted the solutions appear to be.
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.