June 06, 2014 Re: Interview at Lang.NEXT | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bill Baxter | On Thursday, 5 June 2014 at 13:32:16 UTC, Bill Baxter via Digitalmars-d-announce wrote: > On Thu, Jun 5, 2014 at 2:42 AM, Jonathan M Davis via Digitalmars-d-announce > <digitalmars-d-announce@puremagic.com> wrote: > >> >> Though I confess what horrifies me the most about dynamic languages is code >> like this >> >> if(cond) >> var = "hello world"; >> else >> var = 42; >> >> The fact that an if statement could change the type of a variable is just >> atrocious IMHO. > > > Yeh, that's possible, but that doesn't look like something anyone with any > sense would do. > > The things I found most enjoyable about working on javascript were > 1) REPL / fully interactive debugger > When you hit a break point you can just start typing regular js code > into the console to poke the state of your system. > And the convenience of the REPL for seeing what bits of code do as you > write them. That's an advantage of an interpreted language, regardless of typing. > 2) Duck typing / introspection ability > If you have a bunch of objects that have a .width property, and that's > all you care about, you can just look for that. No need to declare an > IWidthHaver interface and make all of your objects declare that they > implement it. D's ranges are examples of this in a statically typed language. You don't care what the type of the range is, just so long as it has the right api. |
June 06, 2014 Re: Interview at Lang.NEXT | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On Wednesday, 4 June 2014 at 06:19:05 UTC, Andrei Alexandrescu
wrote:
> http://www.reddit.com/r/programming/comments/27911b/conversation_with_andrei_alexandrescu_all_things/
>
> Andrei
OK I noticed that I messed up in answering.
I was saying that you 2 seems to be confused between LLVM and
clang.
|
June 06, 2014 Offtopic: AMA (Was: Interview at Lang.NEXT) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On 6/4/14, 3:19 AM, Andrei Alexandrescu wrote:
> http://www.reddit.com/r/programming/comments/27911b/conversation_with_andrei_alexandrescu_all_things/
>
>
> Andrei
This is offtopic, but why are people obsessed with writing English acronyms?
I always have to lookup the meaning and then I'm polluting my head with acronyms.
Is there any difference in time/convenience between writing "Interviewee here. Ask me anything" Between "Interviewee. AMA"?
:-(
|
June 06, 2014 Re: Interview at Lang.NEXT | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | On Wednesday, 4 June 2014 at 22:02:37 UTC, Adam D. Ruppe wrote: > Yeah, I'm generally against it... but I have a weird view of typing. > > The way I see it, you should go either strong and static or dynamic and weak - I hate the middle ground. > > So, in my view: > > Best (like D): > string a = "10"; int b = 20; > a + b; // compile time error: cannot do string + int > > Sometimes ok (my jsvar/script language also PHP and some others): > var a = "10"; var b = 20; > a + b; // 30 > > Blargh (javascript): > var a = "10"; var b = 20; > a + b; // "1020" > > Hatred: > var a = "10"; var b = 20; > a + b; // throws an exception at run time > Yup, you choose the right tradeoff. I wish std.json has something in the same style as our jsvar. > The D one is best because it draws your attention to something that is imperfect immediately and reliably via a compilation error. Then you can solve it with to!int or > whatever easily. > > The weak+dynamic is passable to me because it actually mostly works. The operator you choose coerces the arguments and gives something basically usable. I'd be ok if it > threw an exception in the case of a string that cannot be sanely converted to int, but if it can be made to work, just do it. > We all have to handle JSON or XML or some other thing like that at some point. When it come to these, having variant typing is huge for ease of use. |
June 06, 2014 Re: Offtopic: AMA (Was: Interview at Lang.NEXT) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ary Borenszweig | On Friday, 6 June 2014 at 19:27:35 UTC, Ary Borenszweig wrote: > On 6/4/14, 3:19 AM, Andrei Alexandrescu wrote: >> http://www.reddit.com/r/programming/comments/27911b/conversation_with_andrei_alexandrescu_all_things/ >> >> >> Andrei > > This is offtopic, but why are people obsessed with writing English acronyms? > > I always have to lookup the meaning and then I'm polluting my head with acronyms. > > Is there any difference in time/convenience between writing "Interviewee here. Ask me anything" Between "Interviewee. AMA"? > > :-( AMA is kinda reddit thing. http://www.reddit.com/r/IAmA/comments/1nl9at/i_am_a_member_of_facebooks_hhvm_team_a_c_and_d/ |
June 06, 2014 Re: Offtopic: AMA (Was: Interview at Lang.NEXT) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tourist | On 6/6/14, 5:25 PM, Tourist wrote:
> On Friday, 6 June 2014 at 19:27:35 UTC, Ary Borenszweig wrote:
>> On 6/4/14, 3:19 AM, Andrei Alexandrescu wrote:
>>> http://www.reddit.com/r/programming/comments/27911b/conversation_with_andrei_alexandrescu_all_things/
>>>
>>>
>>>
>>> Andrei
>>
>> This is offtopic, but why are people obsessed with writing English
>> acronyms?
>>
>> I always have to lookup the meaning and then I'm polluting my head
>> with acronyms.
>>
>> Is there any difference in time/convenience between writing
>> "Interviewee here. Ask me anything" Between "Interviewee. AMA"?
>>
>> :-(
>
> AMA is kinda reddit thing.
> http://www.reddit.com/r/IAmA/comments/1nl9at/i_am_a_member_of_facebooks_hhvm_team_a_c_and_d/
Interesting, I didn't know that. Thanks!
|
June 07, 2014 Re: Offtopic: AMA (Was: Interview at Lang.NEXT) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ary Borenszweig | On Friday, 6 June 2014 at 20:27:45 UTC, Ary Borenszweig wrote:
> On 6/6/14, 5:25 PM, Tourist wrote:
>> On Friday, 6 June 2014 at 19:27:35 UTC, Ary Borenszweig wrote:
>> AMA is kinda reddit thing.
>> http://www.reddit.com/r/IAmA/comments/1nl9at/i_am_a_member_of_facebooks_hhvm_team_a_c_and_d/
>
> Interesting, I didn't know that. Thanks!
What gets me is that there are two acronyms to learn.
IAMA = I Am A
AMA = Ask Me Anything
So: I'm doing an IAMA, AMA.
For a while, I thought people were just lazy and AMA was just the 'am a" part.
|
June 07, 2014 Re: Offtopic: AMA (Was: Interview at Lang.NEXT) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ary Borenszweig | On Friday, 6 June 2014 at 19:27:35 UTC, Ary Borenszweig wrote:
> On 6/4/14, 3:19 AM, Andrei Alexandrescu wrote:
>> http://www.reddit.com/r/programming/comments/27911b/conversation_with_andrei_alexandrescu_all_things/
>>
>>
>> Andrei
>
> This is offtopic, but why are people obsessed with writing English acronyms?
>
> I always have to lookup the meaning and then I'm polluting my head with acronyms.
>
> Is there any difference in time/convenience between writing "Interviewee here. Ask me anything" Between "Interviewee. AMA"?
>
> :-(
Its all the fault of people texting on their cell phones and the like! Too much work to write proper English words. Amirite?
|
June 07, 2014 Re: Offtopic: AMA (Was: Interview at Lang.NEXT) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Craig Dillabaugh | On 6/7/2014 12:21 AM, Craig Dillabaugh wrote: > > Its all the fault of people texting on their cell phones and the like! > Too much work to write proper English words. Amirite? On those things, it *is* work! Even I've started giving up on proper grammar/capitalization/punctuation/spelling when texting (Not my normal comms choice, but I have a couple siblings that are of "everything must be in SMS form" age). Oh well, at least we're not still entering text on number pads. I used to work on a WAP/WPL site (anyone remember those? anyone even *used* those? ;) ) Entering text was bad enough, but entering test-server URLs? Ugh. I never understood why the last Smash Bros game copied that cell phone text interface *intentionally*. |
June 07, 2014 Re: Offtopic: AMA (Was: Interview at Lang.NEXT) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Craig Dillabaugh | On Saturday, 7 June 2014 at 04:21:15 UTC, Craig Dillabaugh wrote:
> On Friday, 6 June 2014 at 19:27:35 UTC, Ary Borenszweig wrote:
>> On 6/4/14, 3:19 AM, Andrei Alexandrescu wrote:
>>> http://www.reddit.com/r/programming/comments/27911b/conversation_with_andrei_alexandrescu_all_things/
>>>
>>>
>>> Andrei
>>
>> This is offtopic, but why are people obsessed with writing English acronyms?
>>
>> I always have to lookup the meaning and then I'm polluting my head with acronyms.
>>
>> Is there any difference in time/convenience between writing "Interviewee here. Ask me anything" Between "Interviewee. AMA"?
>>
>> :-(
>
> Its all the fault of people texting on their cell phones and the like! Too much work to write proper English words. Amirite?
You should see it in the rail industry - it's all TLAs.
-=mike=-
|
Copyright © 1999-2021 by the D Language Foundation