Follow

Code comment of the day or something.

Its probably a holdback from early C or other old system design stuff in programming, but every time I see a file that contains either code or serialized data, it always has that extra newline. Even in modern environments and with modern codebases. Its kinda weird, but also kinda cool.

· · Web · 2 · 2 · 4

Also yea, I use JSON for save files. Its human readable enough for spotting errors when I need it and nothing I've made is complex enough to warrant better or faster serialization. Its all blackboxed anyways, so changing how its serialized later isn't a big deal.

@pyredrid you probably don't need to for serialized data, but for code it's because it makes Git happier

Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!