6 ms·
And it reads "ally" ?
by Jenz 7y ago
And it reads "ally" ?
- OJFord 7y agoThe 11 stands for 'eleven letters ommitted'. Cf. k8s (Kubernetes), i18n (internationalisation), l10n (localisation).
- new_guy 7y agoTIL
- Twirrim 7y agoOkay, that explains that trend, but wow. We actually managed to come up with something arguably more obtuse than an acronym (and they're hardly the most friendly of things)
- Spooky23 7y agoFancy web people are too cool for acronyms
- gmfawcett 7y agoWhat was the acronym for "accessibility" again?
- deleted 7y ago[deleted]
- jodrellblank 7y agoPS C:\> 'accessibility' -replace '(?<=^.)(.+)(?=.$)', {$_.Length} a11y (PowerShell 7)
- phinnaeus 7y agoDid you reply to the wrong person? This is a cool one-liner though!
- gmfawcett 7y agoI'm resisting the urge to rewrite it in APL. :) Nicely done.
- gmfawcett 7y agoWhy can I not resist these urges? Here it is in J, which is basically APL but in ASCII: ({.,(":@(_2+$)),{:) 'accessibility' --> a11y
- lelf 7y agoNo need to resist (⊃,(⍕2-⍨≢),⊃∘⌽)'accessibility'
- gmfawcett 7y agoAPL is a strong drug, I need to regulate my dosage. :)
- jodrellblank 7y agoI tried to write it a couple of different ways, but I keep coming back to approximately your code as the most direct way, if written slightly differently with (⍕¯2+⍴) in the middle; I'm puzzled by the behaviour of being able to drop and take negative numbers to index from the end of the array, but not being able to use negative indexes in other contexts. Why is (¯1⌷word) an error, instead of working like (¯1↑word) works? Here's a much more convoluted way, because everything is difficult in this language: ,/((⊂∘⍕∘⍴∘⊃@2)⊢⊂⍨((1@2)1,⍨¯1↓1⌷(↑(1,⊂))))'accessibility' a11y a frustratingly roundabout way to build up the boolean vector: 'accessibility' 1100000000001 ⍝ for penclose without counting the length first. (Is there a way to drop from the middle of an array? "delete index 4 5 6"? Or to insert into the middle of an array? "Insert between elements 2 and 3"?)
- gmfawcett 7y ago"Everything is difficult in this language" made me smile. :) I mostly agree. There are things things that APL / J make amazingly easy, too, but a lot of simple things are just brutal to me. I'm not a hardcore APL programmer -- I've played with J more than APL, but I'm still a novice at both. I just enjoy the mental challenge sometimes. To insert items from B into A at point N, you could (in pseudocode, I don't have time to play with APL right now!): (Take N of A) , B , (Drop N of A) To remove items from the middle of an array between N and M, I can think of two ways (I might have off-by-one errors here): - (Take N of A) , (Drop M of A) - Bools / A where "Bools" is an array of 1/0 values, and the 1's indicate the elements to keep. As a dyadic verb, "/" means "compress", that is, to keep only the indicated elements from the right-hand object. I'm sure there are other ways! These are the few ways that my limited brain could come up with. :)
- OJFord 7y agoThat's not an acronym, GP's point is that a single word acronym contains even less information than this (apparently called a 'numeronym').
- p1mrx 7y agohttps://en.wikipedia.org/wiki/Numeronym https://en.wikipedia.org/wiki/Numeronym
- gmfawcett 7y agoI'm pretty sure that "i18n" and "l10n" are about fifteen years old -- not exactly a trend any more (at least, not a new one).
- gojomo 7y agoThey're a bit older than that – this credible report suggests 'i18n' was in use at DEC in 1985, with appearances in public online discussions by 1989, and in books by the early 1990s: http://www.i18nguy.com/origini18n.html http://www.i18nguy.com/origini18n.html
- gmfawcett 7y agoAmazing. I wouldn't have guessed it was that far back.
- deleted 7y ago[deleted]