News for hackers. Stuff that matters.
Re:Texture Healing for Monospace Fonts by adastra22 on Friday November 10, 2023 @10:02PM (#38227257)
"If you stop doing things which derive benefits from monospaced fonts, then you can get away with a proportional font."

Thanks, but no. Your foo.bar() example is significantly less readable the way Black formats it.

Re:Texture Healing for Monospace Fonts by Dylan16807 on Saturday November 11, 2023 @12:08AM (#38227804)
I don't like the extra lines, but also I almost never care if "one" is exactly lined up with "two". You can use proportional fonts with the first example too.
Re:Texture Healing for Monospace Fonts by kdmccormick on Saturday November 11, 2023 @12:52AM (#38227953)
> can use proportional fonts with the first example too.

what, how? Wouldn't the number of spaces you'd need to prefix lines 2 and 3 with vary between fonts?

Re:Texture Healing for Monospace Fonts by Dylan16807 on Saturday November 11, 2023 @01:54AM (#38228139)
Not if you don't care about "one" exactly lining up with "two".

  foo.bar(one
        two,
        three) //this is fine, and slight drift on different fonts is also fine
I would have demonstrated in a proper proportional way but HN destroys NBSP.
Re:Texture Healing for Monospace Fonts by adastra22 on Saturday November 11, 2023 @02:07PM (#38233415)
That was the whole point.
Re:Texture Healing for Monospace Fonts by Dylan16807 on Saturday November 11, 2023 @02:31PM (#38233664)
You dismissed the idea as "if you stop doing thing which benefit from monospaced fonts", suggesting that monospaced fonts are better in this situation.

My argument is that both fonts are just as good in this situation, and monospaced fonts aren't benefiting here. You don't need monospaced fonts to use formatting 1, you can just choose formatting 1 and then use either kind of font.

Doesn't that mean I disagree with your post?

Re:Texture Healing for Monospace Fonts by adastra22 on Saturday November 11, 2023 @05:35PM (#38235269)
Having the "one" line up with the "two" is the benefit here, and the point of the monospaced font. If you don't care about that, fine. But objectively lots of people do.
Re:Texture Healing for Monospace Fonts by Dylan16807 on Saturday November 11, 2023 @06:34PM (#38235685)
Well I'm saying that it does still line up in a reasonable sense, at least from the perspective of someone that would use a proportional font at all and isn't looking for a grid.

It's important to note that I'm not comparing monospace versus proportional. I'm saying that "formatting 1 with proportional font" isn't really worse than "formatting 2 with proportional font". Both of them are going to have problems from someone that really likes monospacing.

Re:Texture Healing for Monospace Fonts by adastra22 on Saturday November 11, 2023 @07:22PM (#38235977)
"If you stop doing things which derive benefits from monospaced fonts, then you can get away with a proportional font."
Re:Texture Healing for Monospace Fonts by Dylan16807 on Saturday November 11, 2023 @09:29PM (#38236665)
No, that's the opposite of my point.

"If you already decided to have a proportional font, you don't need to stop doing any things."

My argument is that "need to stop doing X" is not true for either kind of font.

Re:Texture Healing for Monospace Fonts by ZephyrBlu on Saturday November 11, 2023 @01:30AM (#38228064)
That formatting is extremely common in dynamic languages. Are you from the C/C++ world?