www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - DConf 2013 Day 1 Talk 4: Writing Testable Code in D by Ben Gertzfield

reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
Watch, discuss, vote! As discussed you may want to use reddit for 
discussing this talk for a larger audience and impact.

http://goo.gl/VnDVi


Andrei
May 15 2013
next sibling parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 5/15/2013 3:25 AM, Andrei Alexandrescu wrote:
 Watch, discuss, vote! As discussed you may want to use reddit for discussing
 this talk for a larger audience and impact.

 http://goo.gl/VnDVi
http://www.reddit.com/r/programming/comments/1edih2/dconf_2013_day_1_talk_4_writing_testable_code_in/
May 15 2013
parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 5/15/13 1:35 PM, Walter Bright wrote:
 On 5/15/2013 3:25 AM, Andrei Alexandrescu wrote:
 Watch, discuss, vote! As discussed you may want to use reddit for
 discussing
 this talk for a larger audience and impact.

 http://goo.gl/VnDVi
http://www.reddit.com/r/programming/comments/1edih2/dconf_2013_day_1_talk_4_writing_testable_code_in/
One can only assume you didn't click that short URL... :o) Andrei
May 15 2013
next sibling parent Walter Bright <newshound2 digitalmars.com> writes:
On 5/15/2013 12:08 PM, Andrei Alexandrescu wrote:
 On 5/15/13 1:35 PM, Walter Bright wrote:
 On 5/15/2013 3:25 AM, Andrei Alexandrescu wrote:
 Watch, discuss, vote! As discussed you may want to use reddit for
 discussing
 this talk for a larger audience and impact.

 http://goo.gl/VnDVi
http://www.reddit.com/r/programming/comments/1edih2/dconf_2013_day_1_talk_4_writing_testable_code_in/
One can only assume you didn't click that short URL... :o)
I did, but only because I trust you. I like to know where urls go before clicking, and am guessing that others do as well.
May 15 2013
prev sibling parent reply Nick Sabalausky <SeeWebsiteToContactMe semitwist.com> writes:
On Wed, 15 May 2013 15:08:34 -0400
Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> wrote:

 On 5/15/13 1:35 PM, Walter Bright wrote:
 On 5/15/2013 3:25 AM, Andrei Alexandrescu wrote:
 Watch, discuss, vote! As discussed you may want to use reddit for
 discussing
 this talk for a larger audience and impact.

 http://goo.gl/VnDVi
http://www.reddit.com/r/programming/comments/1edih2/dconf_2013_day_1_talk_4_writing_testable_code_in/
One can only assume you didn't click that short URL... :o)
The problem with short URLs is that they're completely opaque: you have no idea where they go. Ex: I didn't know if it was for the reddit, youtube, or the DConf page. Besides, hyperlinking and copy/paste tend to obviate any benefit of shortened URLs. "goo.gl" and such are extremely useful if you're giving someone a URL over the phone, but aside from that, I've never seen much of a point. Obviously I'm not saying "How dare you use a short URL, jerk!" ;) I'm just sayin', FWIW.
May 15 2013
parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 5/15/2013 1:08 PM, Nick Sabalausky wrote:
 The problem with short URLs is that they're completely opaque: you have
 no idea where they go. Ex: I didn't know if it was for the reddit,
 youtube, or the DConf page. Besides, hyperlinking and copy/paste tend to
 obviate any benefit of shortened URLs. "goo.gl" and such are extremely
 useful if you're giving someone a URL over the phone, but aside from
 that, I've never seen much of a point.
Twitter used to pretty much require use of shortened URLs, but they fixed that problem, and now I use full length ones on it.
May 15 2013
parent reply Nick Sabalausky <SeeWebsiteToContactMe semitwist.com> writes:
On Wed, 15 May 2013 14:18:30 -0700
Walter Bright <newshound2 digitalmars.com> wrote:

 On 5/15/2013 1:08 PM, Nick Sabalausky wrote:
 The problem with short URLs is that they're completely opaque: you
 have no idea where they go. Ex: I didn't know if it was for the
 reddit, youtube, or the DConf page. Besides, hyperlinking and
 copy/paste tend to obviate any benefit of shortened URLs. "goo.gl"
 and such are extremely useful if you're giving someone a URL over
 the phone, but aside from that, I've never seen much of a point.
Twitter used to pretty much require use of shortened URLs, but they fixed that problem, and now I use full length ones on it.
That's interesting (and I hadn't even thought of that issue). Did they make that change by increaseing the max message length, or do the detect URLs and not count them towards the total msg length, or something else?
May 15 2013
parent reply "Adam D. Ruppe" <destructionator gmail.com> writes:
On Wednesday, 15 May 2013 at 23:16:02 UTC, Nick Sabalausky wrote:
 detect URLs and not count them towards the total msg length, or
 something else?
This is basically it. When you post a link to twitter, they detect the url and rewrite it into t.co/whatever shortlink on their end. Then that is used in the message and counts toward the length instead of the original full link.
May 15 2013
parent reply Bill Baxter <wbaxter gmail.com> writes:
http://does_that_mean_you.can.get.around/the-140-character_limit_by_pretending_your_content_is_actually_a_url?


On Wed, May 15, 2013 at 4:28 PM, Adam D. Ruppe <destructionator gmail.com>wrote:

 On Wednesday, 15 May 2013 at 23:16:02 UTC, Nick Sabalausky wrote:

 detect URLs and not count them towards the total msg length, or
 something else?
This is basically it. When you post a link to twitter, they detect the url and rewrite it into t.co/whatever shortlink on their end. Then that is used in the message and counts toward the length instead of the original full link.
May 16 2013
parent reply "Adam D. Ruppe" <destructionator gmail.com> writes:
On Thursday, 16 May 2013 at 16:51:13 UTC, Bill Baxter wrote:
 http://does_that_mean_you.can.get.around/the-140-character_limit_by_pretending_your_content_is_actually_a_url?
Sort of. I just tried this just trying this http://does_that_mean_you.can.get.around.com/the-140-character_limit_by_pretending_your_content_is_actually_a_url+or+not+because+i+gotta+say+i+don't+really+lnow+this+i+guess+you+prolly+can+and+wow+this+is+one+long+Tweet+but+it+still+says+i+have+99+chars+left? and it said i still had 99 chars left. But when you post it, the link will show up as something like t.co/stuff so to read the message, people will have to click the link anyway... and at that point you might as well just link to a regular webpage with your text.
May 16 2013
parent reply Bill Baxter <wbaxter gmail.com> writes:
I see. So I guess they have some 'within reason' limit on the length of a
url they will show in-line.  Makes sense.


On Thu, May 16, 2013 at 9:58 AM, Adam D. Ruppe <destructionator gmail.com>w=
rote:

 On Thursday, 16 May 2013 at 16:51:13 UTC, Bill Baxter wrote:

 http://does_that_mean_you.can.**get.around/the-140-character_**
 limit_by_pretending_your_**content_is_actually_a_url<http://does_that_me=
an_you.can.get.around/the-140-character_limit_by_pretending_your_content_is= _actually_a_url>
 ?
Sort of. I just tried this just trying this http://does_that_mean_you.can.**get.around.com/the-140-** character_limit_by_pretending_**your_content_is_actually_a_** url+or+not+because+i+gotta+**say+i+don't+really+lnow+this+** i+guess+you+prolly+can+and+**wow+this+is+one+long+Tweet+** but+it+still+says+i+have+99+**chars+left<http://does_that_mean_you.can.ge=
t.around.com/the-140-character_limit_by_pretending_your_content_is_actually= _a_url+or+not+because+i+gotta+say+i+don't+really+lnow+this+i+guess+you+prol= ly+can+and+wow+this+is+one+long+Tweet+but+it+still+says+i+have+99+chars+lef= t>
 ?

 and it said i still had 99 chars left. But when you post it, the link wil=
l
 show up as something like t.co/stuff so to read the message, people will
 have to click the link anyway... and at that point you might as well just
 link to a regular webpage with your text.
May 16 2013
parent 1100110 <0b1100110 gmail.com> writes:
On 05/16/2013 12:19 PM, Bill Baxter wrote:
 I see. So I guess they have some 'within reason' limit on the length of=
 a url they will show in-line.  Makes sense.
=20
=20
 On Thu, May 16, 2013 at 9:58 AM, Adam D. Ruppe
 <destructionator gmail.com <mailto:destructionator gmail.com>> wrote:
=20
     On Thursday, 16 May 2013 at 16:51:13 UTC, Bill Baxter wrote:
=20
         http://does_that_mean_you.can.__get.around/the-140-character___=
limit_by_pretending_your___content_is_actually_a_url
         <http://does_that_mean_you.can.get.around/the-140-character_lim=
it_by_pretending_your_content_is_actually_a_url>?
=20
=20
     Sort of. I just tried this
=20
     just trying this
     http://does_that_mean_you.can.__get.around.com/the-140-__character_=
limit_by_pretending___your_content_is_actually_a___url+or+not+because+i+g= otta+__say+i+don't+really+lnow+this+__i+guess+you+prolly+can+and+__wow+th= is+is+one+long+Tweet+__but+it+still+says+i+have+99+__chars+left
     <http://does_that_mean_you.can.get.around.com/the-140-character_lim=
it_by_pretending_your_content_is_actually_a_url+or+not+because+i+gotta+sa= y+i+don't+really+lnow+this+i+guess+you+prolly+can+and+wow+this+is+one+lon= g+Tweet+but+it+still+says+i+have+99+chars+left>?
=20
     and it said i still had 99 chars left. But when you post it, the
     link will show up as something like t.co/stuff <http://t.co/stuff>
     so to read the message, people will have to click the link anyway..=
=2E
     and at that point you might as well just link to a regular webpage
     with your text.
=20
=20
I'm sorry, all I heard was "secret messages."
May 16 2013
prev sibling next sibling parent Walter Bright <newshound2 digitalmars.com> writes:
On 5/15/2013 3:25 AM, Andrei Alexandrescu wrote:
 Watch, discuss, vote! As discussed you may want to use reddit for discussing
 this talk for a larger audience and impact.
https://news.ycombinator.com/item?id=5713539
May 15 2013
prev sibling next sibling parent Nick Sabalausky <SeeWebsiteToContactMe semitwist.com> writes:
On Wed, 15 May 2013 06:25:38 -0400
Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> wrote:
 Watch, discuss, vote! As discussed you may want to use reddit for 
 discussing this talk for a larger audience and impact.
 
Torrents and all other links: http://semitwist.com/download/misc/dconf2013/
May 15 2013
prev sibling parent Nick Sabalausky <SeeWebsiteToContactMe semitwist.com> writes:
On Wed, 15 May 2013 06:25:38 -0400
Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> wrote:

 Watch, discuss, vote! As discussed you may want to use reddit for 
 discussing this talk for a larger audience and impact.
 
 http://goo.gl/VnDVi
 
Fantastic talk. I had read about dependency injection before, but ended up dismissing it as "Java-born overengineering". This changed my mind within the first 15 minutes. Related to what Ben was saying around 34:00-35:00 or so about looking forward with this and being able to say "Oh, XXXX software was made in D, so good chance it's pretty stable": I think a mature version of deject would be a great thing to have in Phobos, building on how well built-in unittests have worked out.
May 16 2013