▲ | giveita 4 days ago | ||||||||||||||||||||||||||||
Thats a slippery slope towards storing semantics and displaying locally preferred syntax ;) | |||||||||||||||||||||||||||||
▲ | jitl 4 days ago | parent | next [-] | ||||||||||||||||||||||||||||
I prefer storing plain text and displaying locally preferred syntax, to a degree. With some expressions, like lookup tables or bit strings, hand wrapping and careful white space use is the difference between “understandable and intuitive” and “completely meaningless”. In JS world, `// prettier-ignore` above such an expression preserves it but ideally there’s a more universal way to express this. | |||||||||||||||||||||||||||||
▲ | Cthulhu_ 4 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||
And that's fine, as long as whatever ends up in version control is standardized. Locally you can tweak your settings to have / have not word wrapping, 2-8 space indentation, etc. But that's the core of this article, too; since then it's normalized to store the plain text source code in git and share it, but it mentions a code and formatting agnostic storage format, where it's down to people's editors (and diff tools, etc) to render the code. It's not actually unusual, since things like images are also unreadable if you look at their source code, but tools like Github will render them in a human digestable format. | |||||||||||||||||||||||||||||
▲ | NL807 4 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||
And the bikeshedding has begun... | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
▲ | bogomog 3 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||
That's why Python should have gone all-in on significant spaces: tabs for blocks, spaces after tabs for line continuation | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
▲ | rightbyte 3 days ago | parent | prev [-] | ||||||||||||||||||||||||||||
Is this a subtle pro-tab pinch? |