News for hackers. Stuff that matters.
Re:CamelCase vs. Underscores: Revisited by inopinatus on Wednesday January 25, 2023 @06:47PM (#34525843)
I’ve always liked the readability, but interaction is a problem when many UIs treat the hyphen as a break character. Most (all?) browsers do, and even some (albeit not good) IDEs cannot be configured otherwise. When you’re in a hurry, it’s easy to miss a bit off the end.
Re:CamelCase vs. Underscores: Revisited by layer8 on Wednesday January 25, 2023 @11:16PM (#34527624)
Luckily Unicode has the non‑breaking hyphen U+2011. This‑is‑a‑long‑identifier‑that‑should‑not‑break‑at‑any‑of‑the‑hyphens.
Re:CamelCase vs. Underscores: Revisited by inopinatus on Friday January 27, 2023 @05:40PM (#34552840)
Alas, that doesn't seem to be a general solution. Sure, it doesn't break in my IDEs, nor does it linebreak in browsers, but it's still a selection break in everything except IDEs, it's harder to type, and it's harder to grep.