www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Found on proggit: Why D is a good choice for writing a language

reply Joakim <dlang joakim.fea.st> writes:
By our very own BBasile of Coedit fame:

https://lambdahackers.com/ b4asile/why-d-is-a-good-choice-for-writing-a-toy-language-4vapyvas5a
Aug 16 2018
next sibling parent Bastiaan Veelo <Bastiaan Veelo.net> writes:
On Friday, 17 August 2018 at 06:38:59 UTC, Joakim wrote:
 By our very own BBasile of Coedit fame:

 https://lambdahackers.com/ b4asile/why-d-is-a-good-choice-for-writing-a-toy-language-4vapyvas5a
An interesting read. Nice to see that Pegged’s toHTML() method is appreciated and put to good use, adding to Pegged’s value.
Aug 17 2018
prev sibling parent reply Basile B. <b2.temp gmx.com> writes:
On Friday, 17 August 2018 at 06:38:59 UTC, Joakim wrote:
 By our very own BBasile of Coedit fame:

 https://lambdahackers.com/ b4asile/why-d-is-a-good-choice-for-writing-a-toy-language-4vapyvas5a
I was surprised to see how well received was this reddit post. Initially i've written it to test a new website (lambdahackers.com). Also it's not very technical. And finally not very well written (even if i got 2 reviews to help fixing the mistakes). I guess that's a combination of how reddit works and a boost from D users.
Aug 17 2018
parent reply zabruk <sorryno em.ail> writes:
 https://lambdahackers.com/ b4asile/why-d-is-a-good-choice-for-writing-a-toy-language-4vapyvas5a
<offtopic> Can anyone explain me the purpose of javascript on this page? Especialy various mouse click event handlers, those break common well-known handfull browser behaviour? I can't select text and press mouse r-click to invoke firefox gtranslate plugin for selected text for example. </offtopic>
Aug 17 2018
next sibling parent reply "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
On Fri, Aug 17, 2018 at 11:29:46AM +0000, zabruk via Digitalmars-d wrote:
[...]
 <offtopic>
 
 Can anyone explain me the purpose of javascript on this page?
 Especialy various mouse click event handlers, those break common
 well-known handfull browser behaviour?
 I can't select text and press mouse r-click to invoke firefox
 gtranslate plugin for selected text for example.
 
 </offtopic>
NoScript is your friend. T -- "A one-question geek test. If you get the joke, you're a geek: Seen on a California license plate on a VW Beetle: 'FEATURE'..." -- Joshua D. Wachs - Natural Intelligence, Inc.
Aug 17 2018
parent reply zabruk <sorry noem.ail> writes:
On Friday, 17 August 2018 at 14:11:24 UTC, H. S. Teoh wrote:
 NoScript is your friend.
Yes. But i just wonder: site creators make secret war with us (users). They make we harder and harder, we struggle by noscript and other technics :) Did you see sites, where links made with js, so i cant open it in other browser tab (i just see javascript:void() in url bar)? Sites full with bells and whistles, but with broken surfing... Very strange... Looks like sites creators are not web surfers...
Aug 17 2018
parent "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
On Fri, Aug 17, 2018 at 03:39:44PM +0000, zabruk via Digitalmars-d wrote:
 On Friday, 17 August 2018 at 14:11:24 UTC, H. S. Teoh wrote:
 NoScript is your friend.
 
Yes. But i just wonder: site creators make secret war with us (users). They make we harder and harder, we struggle by noscript and other technics :) Did you see sites, where links made with js, so i cant open it in other browser tab (i just see javascript:void() in url bar)? Sites full with bells and whistles, but with broken surfing... Very strange... Looks like sites creators are not web surfers...
As someone once said: "Never ascribe to malice that which is adequately explained by incompetence." Most of the time, web devs are just reusing stuff (libraries, frameworks, languages, etc.) somebody else has made, and don't really give much thought to it except that it works for them. Not everyone bothers to make things work degrade gracefully the way HTML/JS/etc. are supposed to. Even though personally I reserve JS only for truly necessary occasions where the functionality cannot be replicated by anything else, the vast majority of web devs today see JS as something that can simply be assumed to be there, and so have no qualms about making links that only exist in JS. They're not deliberately out to break things for non-JS users or old browsers -- there is no "secret war" -- they just aren't targeting that audience. Most users don't even know the difference anyway. People like us who prefer to use HTML links for what they're supposed to be used for, are in the minority. On my part, I don't even use JS on my own website, and no heavy graphics except where it's actually part of the content. The site loads in subseconds, and with minimal memory requirements. No need for heavy-weight RAM-consuming CPU-hogging script libraries that aren't actually needed to put out the content. But this approach to web design is pretty much unheard of these days, even though IMO it makes the most sense. T -- Let's not fight disease by killing the patient. -- Sean 'Shaleh' Perry
Aug 17 2018
prev sibling parent reply tiensonqin <tiensonqin gmail.com> writes:
On Friday, 17 August 2018 at 11:29:46 UTC, zabruk wrote:
 https://lambdahackers.com/ b4asile/why-d-is-a-good-choice-for-writing-a-toy-language-4vapyvas5a
<offtopic> Can anyone explain me the purpose of javascript on this page? Especialy various mouse click event handlers, those break common well-known handfull browser behaviour? I can't select text and press mouse r-click to invoke firefox gtranslate plugin for selected text for example. </offtopic>
Hi zabruk, sorry for the bug. I have to listen on `on-mouse-down` to let users to quote comment, now it's fixed, https://github.com/tiensonqin/lambdahackers/issues/46
Aug 21 2018
parent zabruk <sorryno em.ail> writes:
On Tuesday, 21 August 2018 at 08:21:41 UTC, tiensonqin wrote:
 now it's fixed,
Thank you!
Aug 21 2018