Earlier quoted context omitted.
> It was too random to be encrypted That's a rather odd remark.
It's not? Compare a random data from a pseudo gen, a really random data and some encrypted data. They are all different.
Your hex editor should color-code bytes
151–160 of 165 posts
Re: Your hex editor should color-code bytes
#152Re: Your hex editor should color-code bytes
#153Rob Pike says colors add cognitive load. He calls syntax highlighting "juvenile".
Re: Your hex editor should color-code bytes
#154Everything should try do some basic syntax highlighting IMO. Not too much, or it just becomes a sea of formatting that doesn't help at all. It is surprising how much difference just a little splash of colour can make if it isn't overdone. If possible, always include configuration options for the user though, so those with colour-blindness issues can tweak things to their needs, those who are just fussy can make the o…
> Everything should try do some basic syntax highlighting IMO. Interesting idea. So even syntax–highlighting natural language. Grammar highlighting, as it were. Prepositions, verbs, question marks, etc. An LLM could do it. Would it actually improve readability though? Seems likely!
Highly unlikely.
https://www.linusakesson.net/programming/syntaxhighlighting/
(Look at what else he's done, if you doubt the value of his opinion.)
Re: Your hex editor should color-code bytes
#155Re: Your hex editor should color-code bytes
#156For anyone who regularly has to look at/analyze binary files, i highly recommend ImHex [1]. Its a hex editor built with imgui and has a lot of built in tools. Imo the best feature is the data structure editor. You can write a data type definition similar to C and it overlays it on the hexdump and parses it in a structured way while you type. It also has a node based editor. 1: https://github.com/WerWolv/ImHex
It really is by far the best hex editor I ever used, and sooo good for reversing arbitrary binary blobs where you learn incrementally more about its structure while reversing it. The imhex patterns repo [1] also contains so many formats, it makes binwalk almost useless in comparison.
Re: Your hex editor should color-code bytes
#157Earlier quoted context omitted.
I'd recommend for every developer to get one or more colourblind friends. I have some, and regularly send them screenshots of what I'm working on to get feedback what they can see and what they can read/can't read. They've been absolutely invaluable for making sure their kind of people can't use my apps properly.
> I'd recommend for every developer to get one or more colourblind friends. In the absence of any naturally occuring colour-blind friends, do you have any tips about surrptitious damaging someone's eyes to create one? :-) Though there are simulation tools avaliable which do a reasonable job, I'll probably stick to those where I have a concern. That feels less drastic.
This is such an app for iOS / macOS: https://michelf.ca/projects/sim-daltonism/
Re: Your hex editor should color-code bytes
#158Re: Your hex editor should color-code bytes
#159Earlier quoted context omitted.
> Everything should try do some basic syntax highlighting IMO. Interesting idea. So even syntax–highlighting natural language. Grammar highlighting, as it were. Prepositions, verbs, question marks, etc. An LLM could do it. Would it actually improve readability though? Seems likely!
Would it actually improve readability though? Seems likely! Highly unlikely. https://www.linusakesson.net/programming/syntaxhighlighting/ (Look at what else he's done, if you doubt the value of his opinion.)