Dart and D: features that could be used in D, D->dart for web programming

Chris wendlec at tcd.ie
Fri Feb 28 04:58:06 PST 2014


On Friday, 28 February 2014 at 12:12:38 UTC, bearophile wrote:
> Chris:
>
>>   Every time I write something in JS, I feel like a complete 
>> programming novice,
>
> Probably that's part of the problem. More experience in a 
> language helps.

Unfortunately, you cannot get experienced in JS, there's always a 
new pitfall and the more you know it the more you hate it. If you 
don't hate it, you don't know it. On the bright side of things, 
JS teaches you how _not_ to do things and it makes you appreciate 
other languages, real programming languages.

Programming is like this:

Abstract concept of what you wanna do > find out how to do it in 
C/Java/D/C#/Python ...

JS Programming is like this:

Abstract concept of what you wanna do > find out how ... > wait, 
why the f***k is it not > stackoverflow > ah, you cannot do this 
in JS > ah, you can, but you have to reinvent the wheel > now! > 
wait, now, why the f***k > loop through the above ...

> I suggest to use TypeScript (http://www.typescriptlang.org/ ), 
> it has static types, more Java-style classes, better modules, 
> and more; that give a more tidy and ordered kind of coding. If 
> JavaScript gains integers too, programming in TypeScript 
> probably becomes bearable even for die hard D programmers :-)

Thanks a million, I'll check it out.

> Bye,
> bearophile


More information about the Digitalmars-d mailing list