Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



The 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-concept...


Interesting, I just found this discussion on the subject: 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.


Good 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-5175...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: