News for hackers. Stuff that matters.
Re:Show HN: People forget that you can stick any data at the... by mike_hock on Wednesday July 05, 2023 @05:39PM (#36607543)
If you care about maintainability, you keep the binary data out of the source file and have a build process.
Re:Show HN: People forget that you can stick any data at the... by dopidopHN on Wednesday July 05, 2023 @09:24PM (#36609695)
For something small. I would take a data.bin file rather than a build process. But yes.
Re:Show HN: People forget that you can stick any data at the... by mike_hock on Thursday July 06, 2023 @01:25PM (#36619543)
The "build process" in this case is concatenation.
Re:Show HN: People forget that you can stick any data at the... by xg15 on Thursday July 06, 2023 @03:21AM (#36612428)
I meant "maintainability" in the sense that you can open it in a text editor without either corrupting the file or having the editor crash.

It's also useful if you want to check the file into a git repo and want to keep using the diff and merge tools.