simont: A picture of me in 2016 (Default)
simont ([personal profile] simont) wrote2016-06-21 08:47 am

Regular language

I noticed yesterday after writing a comment in some code that one of my writing habits had changed, without me really noticing. So I thought I'd see what other people's opinions were.

Poll #17528 A regular holy war
Open to: Registered Users, detailed results viewable to: All, participants: 38


How do you write 'regular expression' in abbreviated form?

View Answers

regexp
11 (30.6%)

regex
24 (66.7%)

Something else
0 (0.0%)

I only ever write it unabbreviated
0 (0.0%)

I don't ever write it at all
1 (2.8%)

How do you pronounce the g in regexp / regex ?

View Answers

Hard, like in 'regular' (IPA /ɡ/)
23 (60.5%)

Soft, like in 'Reginald' (IPA /dʒ/)
13 (34.2%)

Something else
1 (2.6%)

I never pronounce these abbreviations
1 (2.6%)

ptc24: (Default)

[personal profile] ptc24 2016-06-21 08:10 am (UTC)(link)
For the first question - I think "either, inconsistently, probably depending on which form I've encountered in context".

I think I've been known to use "rexp" as a variable name (partly to avoid a clash with "re" - longer names tend to be "fooBarRe" or "foobarre" depending on language), and I don't think I've been known to use "rex".
ext_66326: (Default)

[identity profile] lnr.livejournal.com 2016-06-21 09:04 am (UTC)(link)
Oh dear, in the end I couldn't answer the first question because I think I'm completely inconsistent and use both. Sorry :)
emperor: (Default)

[personal profile] emperor 2016-06-21 09:37 am (UTC)(link)
I'm pretty sure I use both regex and regexp, but the latter more frequently. And both more than reggae, which this infernal mac tried to correct them to...
gerald_duck: (babel)

[personal profile] gerald_duck 2016-06-21 02:37 pm (UTC)(link)
For me, the surest argument in favour of "regex" over "regexp" is that it's an appreviation of "reg-u-lar ex-press-ion" and the latter pointlessly includes a part-syllable.
pvaneynd: (Default)

IPA not so standard?

[personal profile] pvaneynd 2016-06-22 07:03 am (UTC)(link)
I think you would say I use soft g, as I'm Flemish we have a tendency to use soft all the time, but I cannot hear the difference between /ɡ/ and /dʒ/ in your examples using google translate to hear them didn't help much.

Oh and I pronounce it as "are you certain using this is not a mistake?" as when I need to discuss them people are often ... misguided ;).

The sound samples at https://nl.wikipedia.org/wiki/Stemhebbende_postalveolaire_affricaat and https://nl.wikipedia.org/wiki/Stemhebbende_velaire_plosief were helpful, but strangely enough the samples at https://en.wikipedia.org/wiki/Voiced_palato-alveolar_affricate and https://en.wikipedia.org/wiki/Voiced_velar_stop were confusing.

I thought that IPA should be a sort of standard, so how come I needed to use the Dutch version? Interesting but confusing...

kaberett: Trans symbol with Swiss Army knife tools at other positions around the central circle. (Default)

[personal profile] kaberett 2016-06-22 09:10 am (UTC)(link)
(on balance, but I actually switch between them)
fluffymormegil: @ (Default)

[personal profile] fluffymormegil 2016-06-23 06:30 pm (UTC)(link)
At one point I said regexp, but the phonotactical horribleness of /ksp/ as a word-final consonant cluster appears to have resulted in the /p/ getting abraded away in my brain and my typing habit followed (because shorter).
hairyears: Spilosoma viginica caterpillar: luxuriant white hair and a 'Dougal' face with antennae. Small, hairy, and venomous (Default)

[personal profile] hairyears 2016-06-25 05:21 pm (UTC)(link)
I've head a couple of the UNIX beardies say "Just 'geck it" - similar to 'grep it out of the file', I guess.