LinearArray@programming.dev to Programmer Humor@programming.devEnglish · 8 months agoFull Stack Programmer Doing Frontendprogramming.devimagemessage-square96fedilinkarrow-up1685arrow-down133
arrow-up1652arrow-down1imageFull Stack Programmer Doing Frontendprogramming.devLinearArray@programming.dev to Programmer Humor@programming.devEnglish · 8 months agomessage-square96fedilink
minus-squareTrailblazing Braille Taser@lemmy.dbzer0.comlinkfedilinkarrow-up12·edit-28 months agoI’m terrified by this binary config file. Why?! Was he writing C and said “fuck it, memcpy”? Edit: I suppose it would be more like “fuck it, fprintf(f, (char*)my_config_object, sizeof(my_config_object))”
minus-squareTroy@lemmy.calinkfedilinkarrow-up2arrow-down1·8 months agoI mean, python has pickle and people use that to store config. It’s a weird practice, and totally unsafe, but it works well enough. This wouldn’t be that different.
I’m terrified by this binary config file. Why?! Was he writing C and said “fuck it, memcpy”?
Edit: I suppose it would be more like “fuck it, fprintf(f, (char*)my_config_object, sizeof(my_config_object))”
I mean, python has pickle and people use that to store config. It’s a weird practice, and totally unsafe, but it works well enough. This wouldn’t be that different.