www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Blog post on hidden treasure in the D standard library.

reply "Gary Willoughby" <dev nomad.so> writes:
I've written a new blog post highlighting hidden treasure found 
in the D standard library. I love finding this stuff so i've 
shared my latest discoveries hoping to ignite some curiosity out 
there.

I've put it on reddit so vote up! :)

http://www.reddit.com/r/programming/comments/2etyz1/hidden_treasure_in_the_d_standard_library/
Aug 28 2014
parent reply "Gary Willoughby" <dev nomad.so> writes:
Direct link:
http://nomad.so/2014/08/hidden-treasure-in-the-d-standard-library/
Aug 28 2014
next sibling parent reply "safety0ff" <safety0ff.dev gmail.com> writes:
On Thursday, 28 August 2014 at 16:06:11 UTC, Gary Willoughby 
wrote:
 Direct link:
 http://nomad.so/2014/08/hidden-treasure-in-the-d-standard-library/
What do you have against capitalizing 'I' ? It's annoying / distracting to read text filled with uncapitalised 'I's.
Aug 28 2014
parent reply ketmar via Digitalmars-d-announce <digitalmars-d-announce puremagic.com> writes:
On Thu, 28 Aug 2014 16:18:42 +0000
safety0ff via Digitalmars-d-announce
<digitalmars-d-announce puremagic.com> wrote:

 What do you have against capitalizing 'I' ?
don't even noticed that until your post. but maybe that is 'cause i'm not using capitals at all... ;-)
Aug 28 2014
parent reply "krzaq" <dlangmailinglist krzaq.cc> writes:
On Friday, 29 August 2014 at 02:11:01 UTC, ketmar via 
Digitalmars-d-announce wrote:
 On Thu, 28 Aug 2014 16:18:42 +0000
 safety0ff via Digitalmars-d-announce
 <digitalmars-d-announce puremagic.com> wrote:

 What do you have against capitalizing 'I' ?
don't even noticed that until your post. but maybe that is 'cause i'm not using capitals at all... ;-)
It annoyed me as well. If you're writing in a language, try to appear literate. I could live with misspelt "superfragilisticexpialidocious" or even a your/you're mixed by a native speaker, but this rule is very simple and has no exceptions. In fact, you could just do sed -r "s/(^|[^[:alnum:]])i($|[^[:alnum:]])/\1I\2/g" to have it fixed. How difficult is that?
Aug 29 2014
next sibling parent "krzaq" <dlangmailinglist krzaq.cc> writes:
On Friday, 29 August 2014 at 14:17:55 UTC, krzaq wrote:
 On Friday, 29 August 2014 at 02:11:01 UTC, ketmar via 
 Digitalmars-d-announce wrote:
 On Thu, 28 Aug 2014 16:18:42 +0000
 safety0ff via Digitalmars-d-announce
 <digitalmars-d-announce puremagic.com> wrote:

 What do you have against capitalizing 'I' ?
don't even noticed that until your post. but maybe that is 'cause i'm not using capitals at all... ;-)
It annoyed me as well. If you're writing in a language, try to appear literate. I could live with misspelt "superfragilisticexpialidocious" or even a your/you're mixed by a native speaker, but this rule is very simple and has no exceptions. In fact, you could just do sed -r "s/(^|[^[:alnum:]])i($|[^[:alnum:]])/\1I\2/g" to have it fixed. How difficult is that?
I have been inadvertently too harsh. The lack of capitalized "I" is very annoying, but at the same time, I read the whole post and would like to thank the author for it.
Aug 29 2014
prev sibling parent reply ketmar via Digitalmars-d-announce <digitalmars-d-announce puremagic.com> writes:
On Fri, 29 Aug 2014 14:17:53 +0000
krzaq via Digitalmars-d-announce <digitalmars-d-announce puremagic.com>
wrote:

 If you're writing in a language, try to appear literate.
but what if i can't, for example? i can read (and understand without dictionary, and with jokes too) books of Pratchett, Carrol, Adams, even Tolkien with his "ye olde English", but i absolutely can't build correct English sentence by myself.
Aug 29 2014
parent reply "krzaq" <dlangmailinglist krzaq.cc> writes:
On Friday, 29 August 2014 at 16:13:33 UTC, ketmar via 
Digitalmars-d-announce wrote:
 On Fri, 29 Aug 2014 14:17:53 +0000
 krzaq via Digitalmars-d-announce 
 <digitalmars-d-announce puremagic.com>
 wrote:

 If you're writing in a language, try to appear literate.
but what if i can't, for example? i can read (and understand without dictionary, and with jokes too) books of Pratchett, Carrol, Adams, even Tolkien with his "ye olde English", but i absolutely can't build correct English sentence by myself.
The fact that you obviously can (sans capital Is, it seems) aside, I'd say it's a good reason to give yourself a pause before writing something for a wider public. The rules that say "start every sentence with a capital letter" or "every "I" meaning thyself shall be capitalized" are really simple to follow and you learn them very early when learning the language. Negligence to do so is, to me, either extreme laziness or lack of respect to the reader. This isn't twitter or a text message, after all, you had to have put some serious thought into writing such a post. Why not put a minute more to make it presentable? That being said, I'm sorry for my poor choice of words, I did not mean them to be as aggressive as they are.
Aug 29 2014
next sibling parent reply "Gary Willoughby" <dev nomad.so> writes:
It's my blog and i'll do as *i* please.
Aug 29 2014
parent "Gary Willoughby" <dev nomad.so> writes:
After posting this yesterday i've so far had 9,900+ people visit 
this article (with 96.90% being new visitors). Good exposure for 
D i think. :)
Aug 29 2014
prev sibling parent reply ketmar via Digitalmars-d-announce <digitalmars-d-announce puremagic.com> writes:
On Fri, 29 Aug 2014 17:13:23 +0000
krzaq via Digitalmars-d-announce <digitalmars-d-announce puremagic.com>
wrote:

 Negligence to=20
 do so is, to me, either extreme laziness or lack of respect to=20
 the reader.
neither, in fact. i believe that those rules are useless and senseless now, so it's more like a "one man crusade". i know that virtually nobody will join me in my fight, but it's not enough to stop me. ;-)
Aug 29 2014
next sibling parent reply "safety0ff" <safety0ff.dev gmail.com> writes:
On Saturday, 30 August 2014 at 06:00:31 UTC, ketmar via 
Digitalmars-d-announce wrote:
 i believe that those rules are useless and senseless now, so 
 it's more like a "one man crusade".
It's not a "one man's crusade," it affects legibility and creates dissonance within the text. It also appears unprofessional and uneducated. I gave up on reading the article and started skimming after the small introductory paragraph got it wrong 7 times.
Aug 30 2014
next sibling parent reply "Gary Willoughby" <dev nomad.so> writes:
On Saturday, 30 August 2014 at 07:55:37 UTC, safety0ff wrote:
 On Saturday, 30 August 2014 at 06:00:31 UTC, ketmar via 
 Digitalmars-d-announce wrote:
 i believe that those rules are useless and senseless now, so 
 it's more like a "one man crusade".
It's not a "one man's crusade," it affects legibility and creates dissonance within the text. It also appears unprofessional and uneducated. I gave up on reading the article and started skimming after the small introductory paragraph got it wrong 7 times.
Stop being such a grammar nazi. https://www.youtube.com/watch?v=Ovi7uQbtKas
Aug 30 2014
parent "Marc =?UTF-8?B?U2Now7x0eiI=?= <schuetzm gmx.net> writes:
On Saturday, 30 August 2014 at 07:59:16 UTC, Gary Willoughby 
wrote:
 On Saturday, 30 August 2014 at 07:55:37 UTC, safety0ff wrote:
 On Saturday, 30 August 2014 at 06:00:31 UTC, ketmar via 
 Digitalmars-d-announce wrote:
 i believe that those rules are useless and senseless now, so 
 it's more like a "one man crusade".
It's not a "one man's crusade," it affects legibility and creates dissonance within the text. It also appears unprofessional and uneducated. I gave up on reading the article and started skimming after the small introductory paragraph got it wrong 7 times.
Stop being such a grammar nazi. https://www.youtube.com/watch?v=Ovi7uQbtKas
Nitpick: this is about orthography, not grammar ;-)
Aug 30 2014
prev sibling next sibling parent ketmar via Digitalmars-d-announce <digitalmars-d-announce puremagic.com> writes:
On Sat, 30 Aug 2014 07:55:36 +0000
safety0ff via Digitalmars-d-announce
<digitalmars-d-announce puremagic.com> wrote:

 It also appears unprofessional and uneducated.
so i am.
Aug 30 2014
prev sibling parent reply "Gary Willoughby" <dev nomad.so> writes:
On Saturday, 30 August 2014 at 07:55:37 UTC, safety0ff wrote:
 On Saturday, 30 August 2014 at 06:00:31 UTC, ketmar via 
 Digitalmars-d-announce wrote:
 i believe that those rules are useless and senseless now, so 
 it's more like a "one man crusade".
It's not a "one man's crusade," it affects legibility and creates dissonance within the text. It also appears unprofessional and uneducated. I gave up on reading the article and started skimming after the small introductory paragraph got it wrong 7 times.
ƃuıןןǝds-uɐɔıɹǝɯɐ-puɐ-ɥsıʇıɹq\spɹoʍ\ɯoɔ˙sǝıɹɐuoıʇɔıppɹoɟ o˙ʍʍʍ\\:dʇʇɥ :[Ɩ] uoıʇɐnʇɔund ou puɐ ʎןuo ǝsɐɔ-ɹǝʍoן uı uo ʍou ɯoɹɟ ƃuıɥʇʎɹǝʌǝ ƃuıʇıɹʍ ʇɹɐʇs ʇɥƃıɯ ı ˙ǝןdɯıs 'ǝʇıɹʍ ı ƃuıɥʇʎuɐ pɐǝɹ ʇ,uop 'ʇı ǝʞıן ʇ,uop noʎ ɟI ˙uoısıɔǝp snoıɔuoɔ ɐ ɟo ǝsnɐɔǝq op ı ʎɐʍ ǝɥʇ ǝʇıɹʍ I ˙ɹoɥʇnɐ pǝɥsıןqnd ɐ 'ןןɐ ɹǝʇɟɐ 'ɯɐ ı 'ǝɔuɐɹouƃı ɟo ʇno op ı ʎɐʍ ǝɥʇ ǝʇıɹʍ ʇ,uop I [Ɩ] ¡ƃuoɹʍ ʎןǝʇǝןdɯoɔ ʇןǝds ƃuıǝq spɹoʍ ɟo ʇunoɯɐ snoɯɹouǝ uɐ ɥʇıʍ sʇɔǝןɐıp ɥsıןƃuƎ ןןɐ ɟo ʇsɹoʍ ǝʇnןosqɐ ǝɥʇ sı ɥsıןƃuƎ uɐɔıɹǝɯ∀ ¡sɔıuoqƎ ǝʇoɹʍ puɐ ǝʞods oɥʍ ǝuoǝɯos ʇɔǝɹɹoɔ noʎ ǝǝs oʇ ǝʌoן pןnoʍ I ˙puıɥǝq ʇɟǝן ƃuıǝq ǝɹɐ sɯoıpı ןɐuoıʇıpɐɹʇ ʎuɐɯ ʇǝuɹǝʇuı ǝɥʇ ɟo ʇuǝʌpɐ ǝɥʇ ɥʇıM ˙suoıʇɐıɹɐʌ ʇuǝɹǝɟɟıp ǝʌɐɥ ɯopƃuı⋊ pǝʇıu∩ ǝɥʇ dn ǝʞɐɯ ʇɐɥʇ sǝıɹʇunoɔ ɹnoɟ ǝɥʇ uǝʌƎ ˙sʇsıxǝ ʇı ǝɹǝɥʍ ǝɹǝɥʍʎɹǝʌǝ ǝƃɐnƃuɐן ƃuıƃuɐɥɔ 'ƃuıʍoɹƃ ɐ sı ɥsıןƃuƎ puɐ 'ʇı ɟo uoısɹǝʌ ǝןʇʇıן uʍo ɹıǝɥʇ ǝʌɐɥ pןɹoʍ ǝɥʇ ɟo sʇɹɐd ʎuɐɯ ǝsnɐɔǝq sı ɥsıןƃuƎ ɹoɟ ǝǝʇʇıɯɯoɔ spɹɐpuɐʇs ou sı ǝɹǝɥʇ uosɐǝɹ ǝɥ⊥ ˙ǝƃɐnƃuɐן uʍo ɹıǝɥʇ ǝʇıɹʍ ɹo ʞɐǝds pןnoɥs ʎǝɥʇ ʍoɥ uo ǝןdoǝd ɥsıןƃuƎ ʇɔǝɹɹoɔ oʇ ƃuıʎɹʇ sʎɐʍןɐ ǝɹɐ ǝןdoǝd ɥsıןƃuƎ-uou ʇɐɥʇ snoıɹɐןıɥ ʇı puıɟ sʎɐʍןɐ I ˙ǝuo pǝʇɐɔnpǝun ǝɥʇ ǝɹɐ noʎ ʇɐɥʇ ɟo ǝsnɐɔǝq ʇı puɐʇsɹǝpun ʇ,uɐɔ noʎ ɟI ¡ʇxǝʇ ǝןoɥʍ ǝɥʇ uı s,ı ǝsɐɔ-ɹǝʍoן uǝ⊥ ˙*uǝʇ* sɐɥ ǝןɔıʇɹɐ ǝɹıʇuǝ ǝɥʇ 'uǝʌǝs ʇou 's,ı ǝsɐɔ-ɹǝʍoן *ǝʌıɟ* sɐɥ ɥdɐɹƃɐɹɐd ʎɹoʇɔnpoɹʇuı ǝɥ⊥
Aug 30 2014
next sibling parent reply "safety0ff" <safety0ff.dev gmail.com> writes:
On Saturday, 30 August 2014 at 07:59:16 UTC, Gary Willoughby 
wrote:
 Stop being such a grammar nazi.
I didn't bring it up because I felt like being pedantic, I brought it up as a suggestion to make it more pleasant to read. Since you've already been labelled as a pedant, perhaps you should learn the difference between pedantry and Nazism. On Saturday, 30 August 2014 at 09:38:29 UTC, Gary Willoughby wrote:
 ˙ǝuo pǝʇɐɔnpǝun ǝɥʇ ǝɹɐ noʎ ʇɐɥʇ ɟo ǝsnɐɔǝq ʇı
puɐʇsɹǝpun ʇ,uɐɔ 
 noʎ ɟI ¡ʇxǝʇ ǝןoɥʍ ǝɥʇ uı s,ı ǝsɐɔ-ɹǝʍoן uǝ⊥
˙*uǝʇ* sɐɥ ǝןɔıʇɹɐ 
 ǝɹıʇuǝ ǝɥʇ 'uǝʌǝs ʇou 's,ı ǝsɐɔ-ɹǝʍoן *ǝʌıɟ* sɐɥ
ɥdɐɹƃɐɹɐd 
 ʎɹoʇɔnpoɹʇuı ǝɥ⊥
Firstly:
 I’ve been using D for a number of years and i
1
 am constantly surprised by the hidden treasure i
2
 find in the standard library. I guess the reason for my 
 surprise is that i’ve
3
 never exhaustively read the entire library documentation, i
4
 only skim it for what’s needed at any given time. I’ve promised 
 myself i
5
 will read it thoroughly one day but until then i’ll
6
 enjoy these little discoveries. This article highlights a few 
 of these hidden treasures which i
7 Secondly, as I've already stated, it's not a matter of it being incomprehensible.
 ˙ǝןdɯıs 'ǝʇıɹʍ ı ƃuıɥʇʎuɐ pɐǝɹ ʇ,uop 'ʇı ǝʞıן
ʇ,uop noʎ ɟI
In that case, don't complain when the opinions you've written are dismissed.
 uoıʇɐnʇɔund ou puɐ ʎןuo ǝsɐɔ-ɹǝʍoן uı uo ʍou ɯoɹɟ
ƃuıɥʇʎɹǝʌǝ 
 ƃuıʇıɹʍ ʇɹɐʇs ʇɥƃıɯ ı
The second coming of e e cummings!
Aug 30 2014
next sibling parent reply "Jonathan M Davis" <jmdavisProg gmx.com> writes:
On Sat, 30 Aug 2014 10:44:18 +0000
safety0ff via Digitalmars-d-announce
<digitalmars-d-announce puremagic.com> wrote:

 On Saturday, 30 August 2014 at 07:59:16 UTC, Gary Willoughby
 wrote:
 Stop being such a grammar nazi.
I didn't bring it up because I felt like being pedantic, I brought it up as a suggestion to make it more pleasant to read. Since you've already been labelled as a pedant, perhaps you should learn the difference between pedantry and Nazism.
Can we please stop arguing this (and that goes for both sides of this). This discussion is not in the least bit productive. There is no question that failing to capitalize the letter i when it's used as a pronoun is bad English, and there's no way that anyone fluent enough in English to write an article like this is not going to know that. So, clearly, he's doing it on purpose. I agree that bad grammar - especially when it's so blatant like this - detracts from what's being written, and pointing out that it was a problem was fine, but continuing to argue about it serves no purpose. Clearly, he knows that what he's doing is bad grammar, but he's doing it anyway for whatever his personal reasons are. Arguing about it like this isn't helping. It's just increasing the level of contention around here. - Jonathan M Davis
Aug 30 2014
parent reply "eles" <eles215 gzk.dot> writes:
On Saturday, 30 August 2014 at 11:27:13 UTC, Jonathan M Davis 
wrote:
 On Sat, 30 Aug 2014 10:44:18 +0000
 safety0ff via Digitalmars-d-announce
 <digitalmars-d-announce puremagic.com> wrote:

 On Saturday, 30 August 2014 at 07:59:16 UTC, Gary Willoughby
 wrote:

 There is no question that failing to capitalize the letter i 
 when it's used as
 a pronoun is bad English, and there's no way that anyone fluent
Actually, IIRC (not native English speaker here), it was once told me that the symbol for "I" (first person) is a different one, something like a half of circle, but in print we use "I" for convenience, as it is pronounced the same and it is the most similar too. But, that teacher of mine, in handwriting, always depicted the "I" like a kind of "]".
Aug 30 2014
parent "Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= writes:
On Saturday, 30 August 2014 at 12:44:16 UTC, eles wrote:
 Actually, IIRC (not native English speaker here), it was once 
 told me that the symbol for "I" (first person) is a different 
 one, something like a half of circle, but in print we use "I" 
 for convenience, as it is pronounced the same and it is the 
 most similar too.
It came from "ic" ("ik", "ich"), which was reduced to "i" and then capitalized a century later to add weight. The lower case "i" was originally without at dot… http://www.etymonline.com/index.php?term=I So basically "i" is no less correct than "I", it is just even more arcane… :-)
Aug 30 2014
prev sibling parent "safety0ff" <safety0ff.dev gmail.com> writes:
Just a correction:

On Saturday, 30 August 2014 at 10:44:20 UTC, safety0ff wrote:
 Since you've already been labelled as a pedant, perhaps you 
 should learn the difference between pedantry and Nazism.
I meant: Since you've already labelled *me* Anyways.
Aug 30 2014
prev sibling parent reply Nick Sabalausky <SeeWebsiteToContactMe semitwist.com> writes:
On 8/30/2014 5:38 AM, Gary Willoughby wrote:
 ˙ǝƃɐnƃuɐן uʍo ɹıǝɥʇ ǝʇıɹʍ ɹo ʞɐǝds pןnoɥs ʎǝɥʇ
ʍoɥ uo ǝןdoǝd ɥsıןƃuƎ
 ʇɔǝɹɹoɔ oʇ ƃuıʎɹʇ sʎɐʍןɐ ǝɹɐ ǝןdoǝd ɥsıןƃuƎ-uou
ʇɐɥʇ snoıɹɐןıɥ ʇı puıɟ
 sʎɐʍןɐ I
I'm a native English speaker. Uncapitalized "I" makes a writer come across like a common leet-speak obsessed immature script kiddy. I know you're not one though, which makes it all the more puzzling. Defend it all you want, argue that it doesn't matter...but it still makes yourself look bad. And for what worthwhile benefit? (I think native speakers tend to gloss such things over because they've already seen it so much they've become accustomed to tuning out anyone writing in such styles.) It's not my intent to be insulting here, but the level of insistence on deliberately using and defending such a trivial, and self-defeating, rebelling is just...really??
Aug 30 2014
parent "Meta" <jared771 gmail.com> writes:
On Saturday, 30 August 2014 at 11:19:55 UTC, Nick Sabalausky 
wrote:
 On 8/30/2014 5:38 AM, Gary Willoughby wrote:
 ˙ǝƃɐnƃuɐן uʍo ɹıǝɥʇ ǝʇıɹʍ ɹo ʞɐǝds pןnoɥs ʎǝɥʇ
ʍoɥ uo ǝןdoǝd 
 ɥsıןƃuƎ
 ʇɔǝɹɹoɔ oʇ ƃuıʎɹʇ sʎɐʍןɐ ǝɹɐ ǝןdoǝd ɥsıןƃuƎ-uou
ʇɐɥʇ snoıɹɐןıɥ 
 ʇı puıɟ
 sʎɐʍןɐ I
I'm a native English speaker. Uncapitalized "I" makes a writer come across like a common leet-speak obsessed immature script kiddy. I know you're not one though, which makes it all the more puzzling. Defend it all you want, argue that it doesn't matter...but it still makes yourself look bad. And for what worthwhile benefit? (I think native speakers tend to gloss such things over because they've already seen it so much they've become accustomed to tuning out anyone writing in such styles.) It's not my intent to be insulting here, but the level of insistence on deliberately using and defending such a trivial, and self-defeating, rebelling is just...really??
While we're on the subject of capitalization styles we find distracting, I find the German Practice of capitalizing every Noun in a Sentence extremely distracting. I remember reading an older version of Gulliver's Travels that was written in this style, and it was quite annoying.
Aug 30 2014
prev sibling parent reply "Mengu" <mengukagan gmail.com> writes:
On Saturday, 30 August 2014 at 06:00:31 UTC, ketmar via 
Digitalmars-d-announce wrote:
 On Fri, 29 Aug 2014 17:13:23 +0000
 krzaq via Digitalmars-d-announce 
 <digitalmars-d-announce puremagic.com>
 wrote:

 Negligence to do so is, to me, either extreme laziness or lack 
 of respect to the reader.
neither, in fact. i believe that those rules are useless and senseless now, so it's more like a "one man crusade". i know that virtually nobody will join me in my fight, but it's not enough to stop me. ;-)
i will join you in your fight. i do not use upper case letters when writing both in english and turkish. i find these rules utterly useless as well.
Aug 30 2014
parent "Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= writes:
On Saturday, 30 August 2014 at 10:49:33 UTC, Mengu wrote:
 i will join you in your fight. i do not use upper case letters 
 when writing both in english and turkish. i find these rules 
 utterly useless as well.
the funny thing is that there are movements that fight for a revision of written english since it has been frozen for such a long time that the pronunciation is completely out of sync with how it is written, which is a fairly arcane mishmash. the lack of willingness to reform english creates a lot of unnecessary educational problems all over the world. meaning, people have to memorize pronunciation rather than deduce it from the spelling. i find that rather wasteful... (you know you've won a debate when people start to focus on your grammar ;-)
Aug 30 2014
prev sibling parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 8/28/14, 9:06 AM, Gary Willoughby wrote:
 Direct link:
 http://nomad.so/2014/08/hidden-treasure-in-the-d-standard-library/
Post is on hackernews' front page as well. Congratulations! -- Andrei
Aug 28 2014
parent "Gary Willoughby" <dev nomad.so> writes:
On Thursday, 28 August 2014 at 20:41:21 UTC, Andrei Alexandrescu 
wrote:
 On 8/28/14, 9:06 AM, Gary Willoughby wrote:
 Direct link:
 http://nomad.so/2014/08/hidden-treasure-in-the-d-standard-library/
Post is on hackernews' front page as well. Congratulations! -- Andrei
Cool! :)
Aug 28 2014