Hacker News new | ask | show | jobs
by w4rh4wk5 1598 days ago
Sure, last time I used them I documented some file format I needed to reverse engineer.

Here an excerpt. Of course, it's not _necessary_ to do it like that. It's just flavor.

    ┏━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━┳┅┅
    ┃ Chunk 1 Header │ Chunk 1 Body ┃ Chunk 2 Header │ Chunk 2 Body ┃
    ┗━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━┻┅┅

    Chunk Header:
    ┌───────────┬─────────────────┐
    │ Magic Nr. │ Chunk Body Size │
    │   4 Byte  │          4 Byte │
    └───────────┴─────────────────┘
1 comments

Biggest problem is with mobile / low horizontal resolution displays. I don't mind scrolling left and right, but in some cases the wrapping is forced (as on the HN phone app I'm using, Materialistic) and it becomes a mess. I've longed for some kind of markup system that allows for textual data to be formatted in tabular fashion irrespective of the character size of the contents, like ummmmmm HTML