News for hackers. Stuff that matters.
Re:Why we need a book about naming by vbezhenar on Thursday February 13, 2020 @10:36AM (#22318510)
I don't understand why would anyone find underscores ugly. Underscores are basically spaces. And we use spaces in our language to separate words. May be text editors should draw underscores with more subtle way?

Now-dashes-are-ugly.

Re:Why we need a book about naming by inkeddeveloper on Thursday February 13, 2020 @10:47AM (#22318612)
Underscores are difficult to distinguish from underlining. That's just one issue.

Underscores_make_full_highlighting_easy

Dashes-make-single-highlighting-easy

It's also a use case thing. Double click on each sentence and note the behavior. It depends on which one you want. We use snake case in our urls because you can copy something from the documentation and easily highlight a portion to change.

Re:Why we need a book about naming by omaranto on Thursday February 13, 2020 @10:40AM (#22318552)
English is a dash-using language, not an underscore_using one. Maybe that's why many of us prefer dashes to underscores?
Re:Why we need a book about naming by Bedon292 on Thursday February 13, 2020 @10:57AM (#22318705)
Does any language use underscores? They seem like a purely technical thing to me. In a sentence you are certainly correct the - is much better. But as for the name of something in code, I would personally prefer _.