www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Written in the D programming language

reply Walter Bright <newshound1 digitalmars.com> writes:
These days, there are a number of web crawling spiders that go looking 
for source code to index. D source code tends to superficially look like 
C or C++, and someone who doesn't know D might misinterpret what it is.

I suggest that all D source code modules have the following comment at 
the top:

// Written in the D programming language.

This will help people who are googling for D source code, and will help 
people who don't know they're looking at D source.
Jul 15 2007
next sibling parent davidl <davidl 126.com> writes:
Yes, commander ;)

 These days, there are a number of web crawling spiders that go looking  
 for source code to index. D source code tends to superficially look like  
 C or C++, and someone who doesn't know D might misinterpret what it is.

 I suggest that all D source code modules have the following comment at  
 the top:

 // Written in the D programming language.

 This will help people who are googling for D source code, and will help  
 people who don't know they're looking at D source.
-- 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
Jul 15 2007
prev sibling next sibling parent Alexander Panek <alexander.panek brainsware.org> writes:
Yessir! o>

On Sun, 15 Jul 2007 13:37:27 -0700
Walter Bright <newshound1 digitalmars.com> wrote:

 These days, there are a number of web crawling spiders that go
 looking for source code to index. D source code tends to
 superficially look like C or C++, and someone who doesn't know D
 might misinterpret what it is.
 
 I suggest that all D source code modules have the following comment
 at the top:
 
 // Written in the D programming language.
 
 This will help people who are googling for D source code, and will
 help people who don't know they're looking at D source.
Jul 15 2007
prev sibling next sibling parent Reiner Pope <some address.com> writes:
Walter Bright wrote:
 These days, there are a number of web crawling spiders that go looking 
 for source code to index. D source code tends to superficially look like 
 C or C++, and someone who doesn't know D might misinterpret what it is.
 
 I suggest that all D source code modules have the following comment at 
 the top:
 
 // Written in the D programming language.
 
 This will help people who are googling for D source code, and will help 
 people who don't know they're looking at D source.
Why don't you make that part of the standard? <g>
Jul 15 2007
prev sibling next sibling parent reply "Chris Miller" <chris dprogramming.com> writes:
On Sun, 15 Jul 2007 16:37:27 -0400, Walter Bright  
<newshound1 digitalmars.com> wrote:

 These days, there are a number of web crawling spiders that go looking  
 for source code to index. D source code tends to superficially look like  
 C or C++, and someone who doesn't know D might misinterpret what it is.

 I suggest that all D source code modules have the following comment at  
 the top:

 // Written in the D programming language.

 This will help people who are googling for D source code, and will help  
 people who don't know they're looking at D source.
I'll start adding it to my C and C++ source files too!
Jul 16 2007
parent Regan Heath <regan netmail.co.nz> writes:
Chris Miller wrote:
 On Sun, 15 Jul 2007 16:37:27 -0400, Walter Bright 
 <newshound1 digitalmars.com> wrote:
 
 These days, there are a number of web crawling spiders that go looking 
 for source code to index. D source code tends to superficially look 
 like C or C++, and someone who doesn't know D might misinterpret what 
 it is.

 I suggest that all D source code modules have the following comment at 
 the top:

 // Written in the D programming language.

 This will help people who are googling for D source code, and will 
 help people who don't know they're looking at D source.
I'll start adding it to my C and C++ source files too!
You would sully the name of D with such profanity! <g> Regan
Jul 16 2007
prev sibling next sibling parent reply =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
Walter Bright wrote:

 I suggest that all D source code modules have the following comment at 
 the top:
 
 // Written in the D programming language.
 
 This will help people who are googling for D source code, and will help 
 people who don't know they're looking at D source.
Or maybe even: // Written in the D 1.0 programming language. // Written in the D 2.0 programming language. --anders
Jul 16 2007
parent reply Walter Bright <newshound1 digitalmars.com> writes:
Anders F Bjrklund wrote:
 Walter Bright wrote:
 
 I suggest that all D source code modules have the following comment at 
 the top:

 // Written in the D programming language.

 This will help people who are googling for D source code, and will 
 help people who don't know they're looking at D source.
Or maybe even: // Written in the D 1.0 programming language. // Written in the D 2.0 programming language.
I'd recommend not, as one should be able to quote "D programming language" when googling. So if you want to put in a version, // Written in the D programming language 1.0
Jul 16 2007
parent =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
Walter Bright wrote:

 Or maybe even:

 // Written in the D 1.0 programming language.

 // Written in the D 2.0 programming language.
I'd recommend not, as one should be able to quote "D programming language" when googling. So if you want to put in a version, // Written in the D programming language 1.0
Ah, understood. So it would be OK to use something like: // Written in the D programming language, version 1.0 With "D programming language" being the keyphrase, as in: http://d-programming-language.org/ http://www.google.com/search?q=%22Written%20in%20the%20D%20programming%20language%22 --anders
Jul 16 2007
prev sibling next sibling parent Nicolai Waniek <no.spam thank.you.com> writes:
Walter Bright wrote:
 These days, there are a number of web crawling spiders that go looking
 for source code to index. D source code tends to superficially look like
 C or C++, and someone who doesn't know D might misinterpret what it is.
 
 I suggest that all D source code modules have the following comment at
 the top:
 
 // Written in the D programming language.
 
 This will help people who are googling for D source code, and will help
 people who don't know they're looking at D source.
Sir, yes sir :) -- .71 nicolai dot waniek at sphere71 dot com
Jul 16 2007
prev sibling next sibling parent reply 0ffh <spam frankhirsch.net> writes:
Walter Bright wrote:
 I suggest that all D source code modules have the following comment at 
 the top:
 // Written in the D programming language.
Yeth, marthter.
Jul 16 2007
parent reply Pragma <ericanderton yahoo.removeme.com> writes:
0ffh wrote:
 Walter Bright wrote:
 I suggest that all D source code modules have the following comment at 
 the top:
 // Written in the D programming language.
Yeth, marthter.
Yesh, melord. //zug-zug -- - EricAnderton at yahoo
Jul 17 2007
parent reply Bill Baxter <dnewsgroup billbaxter.com> writes:
Pragma wrote:
 0ffh wrote:
 Walter Bright wrote:
 I suggest that all D source code modules have the following comment 
 at the top:
 // Written in the D programming language.
Yeth, marthter.
Yesh, melord. //zug-zug
All these responses sound very sarcastic to me. Do you resent Walter making this suggestion for some reason? Or is it supposed to be funny? Because to me it kinda ceased being funny after the first one, and just started sounding mean-spirited. It seems a very reasonable suggestion to me. In fact I don't think it's the first time he's suggested it. I've been putting something like that in my D files for a while -- or at least intending to. My coverage may not be 100%. I also think it's a good idea to put a link to digitalmars.com in the header so people know that its not one of those other D programming languages, like DTRACE's D. --bb
Jul 17 2007
next sibling parent Nicolai Waniek <no.spam thank.you.com> writes:
Bill Baxter wrote:

 
 All these responses sound very sarcastic to me.  Do you resent Walter
 making this suggestion for some reason?  Or is it supposed to be funny?
  Because to me it kinda ceased being funny after the first one, and just
 started sounding mean-spirited.
I don't think anyone wanted to be sarcastic this time, but to show that we always hear on what Walter says and that it something we should all adapt. I guess everyone posted it like a (stupid) soldier just to make clear that this is such a good and simple idea, that it is more funny noone else came up with it earlier ;) best regards, Nicolai -- .71 nicolai dot waniek at sphere71 dot com
Jul 17 2007
prev sibling parent Pragma <ericanderton yahoo.removeme.com> writes:
Bill Baxter wrote:
 Pragma wrote:
 0ffh wrote:
 Walter Bright wrote:
 I suggest that all D source code modules have the following comment 
 at the top:
 // Written in the D programming language.
Yeth, marthter.
Yesh, melord. //zug-zug
All these responses sound very sarcastic to me. Do you resent Walter making this suggestion for some reason? Or is it supposed to be funny? Because to me it kinda ceased being funny after the first one, and just started sounding mean-spirited.
It's a classic Warcraft 2 reference, with all the humor that implies. It's supposed to be light-hearted and funny. I find a very genuine and kind humor in the juxtaposition of acting the role of the humble lab assistant or the surf in the field, as many of the folks that post here are very capable developers in their own right. As it is I'm 100% for following Walter's suggestion as it's a good one. :)
 
 It seems a very reasonable suggestion to me.  In fact I don't think it's 
 the first time he's suggested it.  I've been putting something like that 
 in my D files for a while -- or at least intending to.  My coverage may 
 not be 100%.  I also think it's a good idea to put a link to 
 digitalmars.com in the header so people know that its not one of those 
 other D programming languages, like DTRACE's D.
 
 --bb
-- - EricAnderton at yahoo
Jul 17 2007
prev sibling next sibling parent reply :D <:D yahoo.com> writes:
Walter Bright Wrote:

 I suggest that all D source code modules have the following comment at 
 the top:
 
 // Written in the D programming language.
 
 This will help people who are googling for D source code, and will help 
 people who don't know they're looking at D source.
If you would have chosen a better name for your language it wouldn't be necessary ;) You still could...
Jul 18 2007
parent reply torhu <no spam.invalid> writes:
:D wrote:
 Walter Bright Wrote:
 
 I suggest that all D source code modules have the following comment at 
 the top:
 
 // Written in the D programming language.
 
 This will help people who are googling for D source code, and will help 
 people who don't know they're looking at D source.
If you would have chosen a better name for your language it wouldn't be necessary ;) You still could...
Digital Mars Mars Compiler v2.003? Sounds odd, even though Mars is a nicer name than D.
Jul 18 2007
parent reply Clay Smith <clayasaurus gmail.com> writes:
torhu wrote:
 :D wrote:
 Walter Bright Wrote:

 I suggest that all D source code modules have the following comment 
 at the top:

 // Written in the D programming language.

 This will help people who are googling for D source code, and will 
 help people who don't know they're looking at D source.
If you would have chosen a better name for your language it wouldn't be necessary ;) You still could...
Digital Mars Mars Compiler v2.003? Sounds odd, even though Mars is a nicer name than D.
Mercury would be a good name :-P Digital Mars Mercury
Jul 18 2007
next sibling parent reply Robert Fraser <fraserofthenight gmail.com> writes:
I vote Pluto, as a tribute to our dear, departed friend *sheds a tear*.

But I still think "D" is a perfectly good name as it is; it's no harder to


Clay Smith Wrote:

 torhu wrote:
 :D wrote:
 Walter Bright Wrote:

 I suggest that all D source code modules have the following comment 
 at the top:

 // Written in the D programming language.

 This will help people who are googling for D source code, and will 
 help people who don't know they're looking at D source.
If you would have chosen a better name for your language it wouldn't be necessary ;) You still could...
Digital Mars Mars Compiler v2.003? Sounds odd, even though Mars is a nicer name than D.
Mercury would be a good name :-P Digital Mars Mercury
Jul 18 2007
parent Christopher Wright <dhasenan gmail.com> writes:
Robert Fraser palsat
 I vote Pluto, as a tribute to our dear, departed friend *sheds a tear*.
Or why not the newest discovered planet or planet-like body? Hail Hail Hail Hail Hail Eris Eris Eris Eris Eris! All Hail Discordia!
Jul 18 2007
prev sibling next sibling parent reply Bill Baxter <dnewsgroup billbaxter.com> writes:
Clay Smith wrote:
 torhu wrote:
 :D wrote:
 Walter Bright Wrote:

 I suggest that all D source code modules have the following comment 
 at the top:

 // Written in the D programming language.

 This will help people who are googling for D source code, and will 
 help people who don't know they're looking at D source.
If you would have chosen a better name for your language it wouldn't be necessary ;) You still could...
Digital Mars Mars Compiler v2.003? Sounds odd, even though Mars is a nicer name than D.
Mercury would be a good name :-P Digital Mars Mercury
Digital Mars: 10) Glad it's iRAM 9) I am sad glitr 8) laid a Mrs, git? 7) gmail's triad 6) as dirt, gmail 5) it drags mail 4) I'd slam a grit 3) A grad's limit 2) sad grim tail And the number one anagram name replacement for D: Digital Mars: Grim IT Salad --bb
Jul 18 2007
parent reply Manfred Nowak <svv1999 hotmail.com> writes:
Bill Baxter wrote

 And the number one anagram name replacement for D:
 Digital Mars: Grim IT Salad
Much nicer in german: Digital Mars: gar das limit which translates to: refine the limit -manfred
Jul 18 2007
next sibling parent Bill Baxter <dnewsgroup billbaxter.com> writes:
Manfred Nowak wrote:
 Bill Baxter wrote
 
 And the number one anagram name replacement for D:
 Digital Mars: Grim IT Salad
The English ones mostly seemed to come out pessimistic. Don't know if it's just me, or really what's in the cards.
 Much nicer in german:
 Digital Mars: gar das limit
 
 which translates to: refine the limit
Ooh, very nice. I declare that all D users should speak only in German from now on. I'll start. gesundheit.
Jul 18 2007
prev sibling parent reply downs <default_357-line yahoo.de> writes:
Manfred Nowak wrote:
 Bill Baxter wrote
 
 
And the number one anagram name replacement for D:
Digital Mars: Grim IT Salad
Much nicer in german: Digital Mars: gar das limit which translates to: refine the limit -manfred
actually, garen as refine is metallurgy slang (says dict.leo.org) More appropriate translations would be "boil the limit" or "even the limit" (taking gar as a short form of sogar)
Jul 20 2007
parent 0ffh <spam frankhirsch.net> writes:
downs wrote:
 actually, garen as refine is metallurgy slang (says dict.leo.org)
Ugh, good! I already thought I had lost command of the language! :) Regards, Frank
Jul 21 2007
prev sibling parent "Peter C. Chapin" <pchapin sover.net> writes:
Clay Smith wrote:

 Mercury would be a good name :-P
Mercury is the name of a logic/functional programming language. See http://www.cs.mu.oz.au/research/mercury/ Peter
Jul 19 2007
prev sibling parent reply "Nick Sabalausky" <a a.a> writes:
"Walter Bright" <newshound1 digitalmars.com> wrote in message 
news:f7e0hq$1l5d$1 digitalmars.com...
 These days, there are a number of web crawling spiders that go looking for 
 source code to index. D source code tends to superficially look like C or 
 C++, and someone who doesn't know D might misinterpret what it is.

 I suggest that all D source code modules have the following comment at the 
 top:

 // Written in the D programming language.

 This will help people who are googling for D source code, and will help 
 people who don't know they're looking at D source.
Wouldn't the ".d" extension give it away as "not C/C++"?
Aug 02 2007
next sibling parent reply "Anders Bergh" <anders1 gmail.com> writes:
On 8/2/07, Nick Sabalausky <a a.a> wrote:
 Wouldn't the ".d" extension give it away as "not C/C++"?
Sure, but D is not the only language using the ".d" extension. I know DTrace in Solaris uses it for its "scripts". -- Anders
Aug 02 2007
parent Clay Smith <clayasaurus gmail.com> writes:
Anders Bergh wrote:
 On 8/2/07, Nick Sabalausky <a a.a> wrote:
 Wouldn't the ".d" extension give it away as "not C/C++"?
Sure, but D is not the only language using the ".d" extension. I know DTrace in Solaris uses it for its "scripts".
Isn't that called the D programming language as well? If so, then "Written in the D programming language." is not going to help much. Maybe it should be "Written in the Digital Mars D programming language."
Aug 02 2007
prev sibling parent reply Walter Bright <newshound1 digitalmars.com> writes:
Nick Sabalausky wrote:
 "Walter Bright" <newshound1 digitalmars.com> wrote in message 
 news:f7e0hq$1l5d$1 digitalmars.com...
 These days, there are a number of web crawling spiders that go looking for 
 source code to index. D source code tends to superficially look like C or 
 C++, and someone who doesn't know D might misinterpret what it is.

 I suggest that all D source code modules have the following comment at the 
 top:

 // Written in the D programming language.

 This will help people who are googling for D source code, and will help 
 people who don't know they're looking at D source.
Wouldn't the ".d" extension give it away as "not C/C++"?
Not really, as a lot of spiders (including google's) do not recognize the extension as meaning D source.
Aug 02 2007
parent reply "Stewart Gordon" <smjg_1998 yahoo.com> writes:
"Walter Bright" <newshound1 digitalmars.com> wrote in message 
news:f8u0mu$e3p$1 digitalmars.com...
 Nick Sabalausky wrote:
<snip>
 Wouldn't the ".d" extension give it away as "not C/C++"?
Not really, as a lot of spiders (including google's) do not recognize the extension as meaning D source.
So what does Google's code search go on instead? Stewart.
Aug 04 2007
parent reply Chris Nicholson-Sauls <ibisbasenji gmail.com> writes:
Stewart Gordon wrote:
 "Walter Bright" <newshound1 digitalmars.com> wrote in message 
 news:f8u0mu$e3p$1 digitalmars.com...
 Nick Sabalausky wrote:
<snip>
 Wouldn't the ".d" extension give it away as "not C/C++"?
Not really, as a lot of spiders (including google's) do not recognize the extension as meaning D source.
So what does Google's code search go on instead? Stewart.
Presumably they've now added .d/.di extensions to their filters in the process of adding lang:d. Presumably. Or it guesses on some heuristic. (It is Google. I wouldn't be surprised.) -- Chris Nicholson-Sauls
Aug 05 2007
parent "Stewart Gordon" <smjg_1998 yahoo.com> writes:
"Chris Nicholson-Sauls" <ibisbasenji gmail.com> wrote in message 
news:f956qb$2ob3$2 digitalmars.com...
<snip>
 Presumably they've now added .d/.di extensions to their filters in the 
 process of adding lang:d.  Presumably.  Or it guesses on some heuristic. 
 (It is Google.  I wouldn't be surprised.)
Technically, it should go on MIME types, at least when dealing with code files placed directly on the WWW rather than in a zip file or the like. Sadly, - not all hosts are configured to deliver the correct MIME type for program code files - it isn't always easy or even possible to change the configuration so that it does - some browsers have poor handling of such MIME types, leading some people who put code on the web not to bother getting it right. Stewart.
Aug 05 2007