3 ms·
Page 16: Place input labels correctly. This is why I don't understand terraform's convention of aligning all equal signs. It looks nice as a block of text but
by tuxie_ 5y ago
Page 16: Place input labels correctly.
This is why I don't understand terraform's convention of aligning all equal signs. It looks nice as a block of text but it's a lot of unnecessary cognitive effort to follow the invisible line between an attribute and its value.
- krono 5y agoThe syntax plugins for Prisma ORM auto-format their schema files in a similar way [1]. It bothers me so much that I can't bring myself to use their solution - which I realise is incredibly petty :) [1] https://github.com/prisma/docs/blob/main/content/200-concepts/100-components/01-prisma-schema/index.mdx#auto-formatting https://github.com/prisma/docs/blob/main/content/200-concept...
- tuxie_ 5y agoInteresting, I just found this discussion on the subject: https://github.com/prisma/prisma/issues/90 https://github.com/prisma/prisma/issues/90 While I don't agree with their views it may shed some light on where they are coming from.
- krono 5y agoGood find, thanks for sharing the link. I couldn't really put into words why this column style formatting bothers me so much for this type of data, but thanks to one of the comments there I think I do now: this information belongs together horizontally, but it is formatted in a vertical manner which takes more mental processing. The comment: https://github.com/prisma/prisma/issues/90#issuecomment-517515843 https://github.com/prisma/prisma/issues/90#issuecomment-5175...