Re:EdgeDB 2.0
by laszlokorte on Thursday July 28, 2022 @07:06PM
(#32271123)
I just took a look at the quickstart guide. The way the code snippets are implemented is gorgeous. They are syntax highlighted, are formatted/indented exactly as they would be in the terminal, line breaks are indented correctly but css is used to make them easily copy/pastable without including any line numbers/indentation characters. Such a delight. Such focus on details. Makes me really confident in the rest of the project.
[ Parent
| on HN ]
Finally somebody compliments that! Jokes aside, thank you!
I agree. There was a small glitch where the field year was defined as release_year at the beginning. I wanted to submit a PR but it was already fixed on github version, just not published yet.
TIL about user-select:none;
That's useful, I hate copying code snippets alongside line numbers and other weirdness
We use it throughout our UI in all interactive elements. It's super annoying when, say, a button or a navigation element gets accidentally selected for no reason.
Re:EdgeDB 2.0
by matheusmoreira on Thursday July 28, 2022 @10:23PM
(#32272483)
It's great... Until people start abusing it as an ineffective copy protection mechanism.
people can already do that with javascript anyway
Re:EdgeDB 2.0
by inferiorhuman on Thursday July 28, 2022 @09:48PM
(#32272250)
I had no idea what EdgeDB is/was so I took a look at the site. The first thing that stood out was a typo (that's instead of that). It's since been fixed, but I had to chuckle at attention to detail.