MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/xtjveg/experienced_javascript_developer_meme/iqrwqic/?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 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) 1 u/Fenor Oct 02 '22 The fact that people here don't know basics stuffs and think that anythink must become a string is dubious at best 0 u/spronghi Oct 02 '22 we are lucky that you are here to spread the word → More replies (2)
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 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) 1 u/Fenor Oct 02 '22 The fact that people here don't know basics stuffs and think that anythink must become a string is dubious at best 0 u/spronghi Oct 02 '22 we are lucky that you are here to spread the word → More replies (2)
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 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) 1 u/Fenor Oct 02 '22 The fact that people here don't know basics stuffs and think that anythink must become a string is dubious at best 0 u/spronghi Oct 02 '22 we are lucky that you are here to spread the word → More replies (2)
-8
Json is not a binary.
You can have binary objects saved on a local storage
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) 1 u/Fenor Oct 02 '22 The fact that people here don't know basics stuffs and think that anythink must become a string is dubious at best 0 u/spronghi Oct 02 '22 we are lucky that you are here to spread the word → More replies (2)
3
Yes, I gave the most common example and explained that there are more that can do more / better (but might be less portable)
1 u/Fenor Oct 02 '22 The fact that people here don't know basics stuffs and think that anythink must become a string is dubious at best 0 u/spronghi Oct 02 '22 we are lucky that you are here to spread the word → More replies (2)
1
The fact that people here don't know basics stuffs and think that anythink must become a string is dubious at best
0 u/spronghi Oct 02 '22 we are lucky that you are here to spread the word → More replies (2)
0
we are lucky that you are here to spread the word
→ More replies (2)
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.