News for hackers. Stuff that matters.
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.
Re:EdgeDB 2.0 by 1st1 on Thursday July 28, 2022 @07:22PM (#32271258)
Finally somebody compliments that! Jokes aside, thank you!
Re:EdgeDB 2.0 by sedatk on Thursday July 28, 2022 @08:50PM (#32271838)
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.
Re:EdgeDB 2.0 by jeshin on Thursday July 28, 2022 @09:12PM (#32271980)
TIL about user-select:none;

That's useful, I hate copying code snippets alongside line numbers and other weirdness

Re:EdgeDB 2.0 by 1st1 on Thursday July 28, 2022 @09:22PM (#32272049)
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.
Re:EdgeDB 2.0 by jeshin on Friday July 29, 2022 @12:02AM (#32273004)
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.