3 ms·
My first mistake I made as a beginner was dumping a bunch of binary data as text. Something would happen in the way and not the whole data would be written beca
by heavenlyblue 6y ago
My first mistake I made as a beginner was dumping a bunch of binary data as text. Something would happen in the way and not the whole data would be written because I was writing it in text mode.
It just never appeared to me that the default mode of writing the file would _not_ write the array I was passing it.
It’s much more important for beginners to be able to learn clear recipes rather than having double standards with a bunch of edge cases.
- aidos 6y agoI’ve done worse. Using MySQL from php and not having the encoding right somewhere along the way so all my content was being mojibaked on the way in and un-mojibaked on the way out so I didn’t notice it until deep into a project when I needed to extract it to another system. EDIT thanks, I knew that didn't look quite right. "Mojibaked" - such a great term.
- mark-r 6y agoThe term is actually "Mojibake", not "emoji baked". https://en.wikipedia.org/wiki/Mojibake#Etymology https://en.wikipedia.org/wiki/Mojibake#Etymology