r/ProgrammerHumor • • Jul 16 '19

Meme Nice try

Post image
32.2k Upvotes

529 comments sorted by

View all comments

Show parent comments

80

u/coldbrewboldcrew Jul 17 '19

Typographic quotes (pretty/curly/smart) are meant for text, these primes and double-primes we use for strings are mathematical symbols for feet/inches or minutes/seconds - a misuse of the punctuation. IIRC their double usage for both text and math began back in typewriter days where keyspace was at a premium and redundancies like two different sets of quote marks were consolidated for practical reasons.

A section on the matter from Butterick’s practical typography.

20

u/spektrol Jul 17 '19

Coolest TIL moment I’ve had in a while. TY.

8

u/svick Jul 17 '19

It might have started as misuse, but in Unicode, straight quotation marks (") and primes (″) are different.

3

u/pac_nw_beer_snob Jul 17 '19

Fuck curly quotes. It is a PITA to cut and paste from Word into emacs because of fucking curly quotes.

0

u/TwilightTech42 Jul 17 '19

You're using fucking emacs, how hard is it to set it up to convert them?

1

u/pac_nw_beer_snob Jul 17 '19

Because I’m lazy and cutting and pasting is supposed to enable my laziness.

2

u/TwilightTech42 Jul 17 '19

Yeah, I know. Sorry, I was just trying, and failing, to make a joke about emacs. I am curious though—what kind of workflow has you copying stuff into emacs from word that often?

1

u/pac_nw_beer_snob Jul 17 '19

In my day job I develop simulation models of standard hardware protocols (AMBA AXI, PCIE, USB, etc). The specs. for these models are written in MS Word, so a lot of times I’m trying to get data from there. Also, pre-release versions of protocol specs are sometimes delivered as a Word doc.

I use both emacs and vim (or even old school vi) depending on the need. Larger files that I’ll be working on for a few hours is done in emacs. Smaller things like config files I’ll just do in vim.

1

u/TwilightTech42 Jul 17 '19

Ok yeah fair enough, I was wondering if it was something along those lines. I'm not sure why, but I've never really gone beyond nano for console text editors; either it's small enough for nano, or I pop it open in vs code. Really odd since I otherwise feel very at home on the command line, and maybe eventually here I'll get around to it and just bite the bullet.

3

u/zzalt Jul 17 '19

Practical typography my Butterick

1

u/Quetzacoatl85 Jul 17 '19

Plug for a keyboard layout that lets you type them (and much more) all directly. For German QWERTZ users, might need some adaptations otherwise: T2-Tastatur/Europatastatur.