News for hackers. Stuff that matters.
Re:HN Mining or: How I Learned that there are some among us ... by minimaxir on Saturday October 29, 2022 @10:52PM (#33390555)
They are better known as "smart quotes"

iOS at the least by default will substitute "dumb" quotes with smart quotes in text boxes.

Re:HN Mining or: How I Learned that there are some among us ... by colejohnson66 on Saturday October 29, 2022 @11:22PM (#33390701)
Why is OP describing that as “disturbing” (I type with “smart” quotes)? It’s not intentional; it’s just because I’m on an iPhone.[a] On the default keyboard, if I want "dumb" quotes, I have to tap and hold the key to get the popup. Simply tapping the quote key is less effort.

[a]: On my computers, I’ll use "dumb" quotes. Easy way to see where I typed a comment from, I guess.

Re:HN Mining or: How I Learned that there are some among us ... by JadeNB on Saturday October 29, 2022 @11:34PM (#33390774)
> Why is OP describing that as “disturbing” (I type with “smart” quotes)? It’s not intentional; it’s just because I’m on an iPhone.[a] On the default keyboard, if I want "dumb" quotes, I have to tap and hold the key to get the popup. Simply tapping the quote key is less effort.

I never knew you could do that! I've got very frustrated sometimes typing on an iPad when I really want a dumb quote, and, unlike on macOS where the dumb quote is the default and there's the convenient if baffling OPT-[ shortcut to get “ and OPT-SHIFT-[ for ”, I couldn't figure out what to do to my default smart quote to get a dumb quote. Thanks!

Re:HN Mining or: How I Learned that there are some among us ... by wahnfrieden on Saturday October 29, 2022 @11:30PM (#33390749)
it’s an old gatekeeping / geek dick measuring thing, don’t worry about it
Re:HN Mining or: How I Learned that there are some among us ... by Manu40 on Sunday October 30, 2022 @03:36AM (#33392085)
I'm upvoting you, because calling it disturbing really doesn't make sense unless egotism is involved. IMHO.

If someone can explain why it's not just egotism, please go right ahead. Otherwise, it really does seem like it. To me at least.

Other comments try to sort of deal with this problem in their explanations about soft and hard quotes, but they don't really deal with the part about it being disturbing.

What's so disturbing about using a feature available on your device? Especially when it does nothing harmful to the user, or recipients of that users communications?

Re:HN Mining or: How I Learned that there are some among us ... by wahnfrieden on Sunday October 30, 2022 @08:47AM (#33394010)
It is egotism
Re:HN Mining or: How I Learned that there are some among us ... by ShamelessC on Monday October 31, 2022 @01:03AM (#33402251)
A good-faith interpretation would be that "disturbing" is meant more lightly than that. It's more like saying use of tabs (or spaces) is "disturbing". It is a cultural disagreement on surface level, but not _really_ a disagreement if you were to probe further (I doubt the author thinks people are literally disturbed if they use soft quotes).

Further, if you check my sibling comment you'll see that it is a common mistake for beginner/intermediate coders to paste these quotes into code. This is the source of the "cultural debate" in this instance. They are making a judgement about how this common copy/paste problem shows up in practice. Not a judgement about "proper usage".

It's honestly a little surprising that you took this so personally. It reads rather playfully in my opinion.

Re:HN Mining or: How I Learned that there are some among us ... by ShamelessC on Sunday October 30, 2022 @12:22AM (#33391041)
It is simply because they present a commonly encountered scenario where you mistakenly paste them into your code. Not something I encounter much lately but definitely tripped me up in my early years.
Re:HN Mining or: How I Learned that there are some among us ... by OJFord on Sunday October 30, 2022 @02:55AM (#33391890)
You can also just turn them off completely. IIRC Android also does it by default. It's one of the first things I look for on a new device, along with disabling haptic feedback and stupid sound effects.
Re:HN Mining or: How I Learned that there are some among us ... by akkartik on Saturday October 29, 2022 @11:04PM (#33390606)
Looking around, I got the impression they're double rather than single quotes.
Re:HN Mining or: How I Learned that there are some among us ... by TheDong on Saturday October 29, 2022 @11:21PM (#33390694)
That's incorrect.

This is a double quote: ", 0x22, ascii

This is a smart open quote: “, 0x201c, unicode

This is a smart close quote: ”, 0x201d, unicode

By default your keyboard double-quote key produces the ascii double quote mark, and that is what's used for quoting in virtually every programming language.

Word and many email clients will use smart-quotes by default, but they're pretty rare in programming, hence why the "some among us" phrasing calling them out as strange.

That's what the linked repo is referring to by soft quotes, and the command given specifically uses 0x201d above.

Re:HN Mining or: How I Learned that there are some among us ... by fuckstick on Saturday October 29, 2022 @11:55PM (#33390903)
They’re not smart quotes - they're just open and close quotation marks. What is smart about them?

And I don’t see how one is any “softer” than the other.

People’s programming editors often do paren matching - does that make them smart parens? No they’re still just regular old parens.

Re:HN Mining or: How I Learned that there are some among us ... by TheDong on Sunday October 30, 2022 @12:05AM (#33390951)
Why do we call them "hot dogs" when they typically have a very low percentage of dog meat (often 0% I think)? Why do we call it a "gravy boat" when it's not literally a boat? Did you know there are male ladybugs?

Language is descriptive, and people do in fact call them smart quotes. That doesn't mean there has to be anything smart about them, and I'm not making the claim there is, I'm just using an agreed-upon term to convey what I'm talking about.

Re:HN Mining or: How I Learned that there are some among us ... by Manu40 on Sunday October 30, 2022 @03:33AM (#33392063)
"gravy boat"

Cause it's shaped like a simple boat. Or sort of is. Kind of like how 'soft quotes' are considered soft because they aren't in a very hard like up and down position, and are instead positioned like a feather softly falling. (or so I guess)

Re:HN Mining or: How I Learned that there are some among us ... by fuckstick on Sunday October 30, 2022 @05:00AM (#33392573)
> Why do we call them "hot dogs" when they typically have a very low percentage of dog meat

Because historically, the insinuation was that cheap sausages contained dog meat, that’s why. Someone has answered your gravyboat question. And your ladybug example is bordering on blatant troll baiting.

> Language is descriptive, and people do in fact call them smart quotes. That doesn't mean there has to

Some “people” call them ATM machines even though the M stands for machine.

> I'm just using an agreed-upon term to convey what I'm talking about.

The agreed upon terms are Left Double Quotation Mark and Right Double Quotation Mark - nothing about smart quotes in the Unicode tables.

I get that the term smart is used colloquially - but your comment suggests that their Unicode names are “smart”. I do think it is overall silly and confusing to refer to the characters themselves based on some formatting or automatic insertion feature.

Re:HN Mining or: How I Learned that there are some among us ... by ratg13 on Sunday October 30, 2022 @01:56AM (#33391566)
On my computer quotation marks default to low/high, so it depends on your language setting.

i.e. - the quotes are smart because they adapt to your region.

Re:HN Mining or: How I Learned that there are some among us ... by xk3 on Saturday October 29, 2022 @11:21PM (#33390696)
smart/soft quotes are usually:

    ‘|’|“|”
but there are also other quoting glyphs in ASCII but especially UTF-8
Re:HN Mining or: How I Learned that there are some among us ... by fuckstick on Saturday October 29, 2022 @11:56PM (#33390908)
Why are they soft or smart? That makes no sense - they’re just open and close quotation marks.
Re:HN Mining or: How I Learned that there are some among us ... by elguyosupremo on Sunday October 30, 2022 @12:19AM (#33391029)
Smart quotes really refers the feature some software has where it automatically detects what type of quote should be used (opening or closing) and puts that in so you can just use the same quote key at the beginning and end and it'll substitute in the right "smart quote".
Re:HN Mining or: How I Learned that there are some among us ... by drran on Sunday October 30, 2022 @12:48AM (#33391187)
Because option to enable substitution of minutes(') and seconds(") symbols by proper quotation marks is often called as «Enable smart quotes».

For example: 10° 33' 19" -> 10° 33« 19». Very smart!

Re:HN Mining or: How I Learned that there are some among us ... by anjbe on Sunday October 30, 2022 @06:30AM (#33393127)
Good post! I must point out, though, the correct symbol for minutes and seconds is actually the prime. As in, 10° 33′ 19″.
Re:HN Mining or: How I Learned that there are some among us ... by bentcorner on Sunday October 30, 2022 @12:55AM (#33391223)
They are smart because the feature that inserts them is "smart". "Context-aware quotes" or "smartly inserted quotes" might be more accurate.

A PM somewhere probably thought "smart quotes" sounded neat, and here we are.

Re:HN Mining or: How I Learned that there are some among us ... by Thorrez on Sunday October 30, 2022 @02:01AM (#33391591)
Are there any other places on on the internet that call them "soft quotes"?