• 0 Posts
  • 9 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle


  • that will /should probably make their way into JS.

    Not really, IMHO. The main advantage of TS is that it will help you catch errors without having to run a particular piece of code - i.e. you won’t have to move to the third page of some multi-page form to discover a particular bug. In other words, it helps you catch bugs before your code even reaches your browser, so it doesn’t bring you much to have them in the browser.

    (There is a proposal to allow running TS in the browser, which would be nice, but you’d still run a type checker separately to actually catch the bugs.)



  • TypeScript sometimes is the testing ground for the future features of ECMAScript

    They have an explicit policy to only include features that are stage 3 already (i.e. that are pretty much certain to land in the language as-is). The only times they’ve diverged from this is long in the past (I think enum is the main remnant of that, for which I’d recommend using unions of literal string types instead), and experimentalDecorators under pressure from Angular - which has always been behind a flag explicitly named experimental.

    So I really wouldn’t worry too much about that.


  • Then why do you think most business are already writing a separate Android app rather than just optimising their mobile website?

    But “make the mobile version not take up as much screen-space” is not as simple as simply zooming out and just hiding some icon labels. And just the fact that people interact by touch rather than with a mouse and keyboard is already a major adjustment.

    Anyway, I’ll leave it at this, since I feel like there’s not much to gain here for me from the discussion anymore :) Cheers!




  • We are making some of the same mistakes as other countries do like make it more and more and more illegal instead of loosening some of the drug laws.

    That’s exactly why she says the Netherlands risks becoming a narco-state. Well, that, and other countries doing the same:

    The challenges we now face in the Netherlands are not an indictment of our liberal drug policy. Rather the opposite. Take the Dutch government’s approach to MDMA, influenced by the global war on drugs, which has become increasingly repressive since the late 1980s and early 90s. Under international pressure, the Netherlands placed MDMA, which is known as a party drug and perceived as relatively harmless, under the Opium Act in 1988, classifying it as a hard drug. This shift inadvertently contributed to the profitability of illegal MDMA production and created a lucrative business model for criminal organisations, as evidenced by the estimated €18.9bn street value of annual ecstasy production in the Netherlands. This experience reveals how efforts to align with global drug prohibition trends can have counterproductive outcomes.

    What the Netherlands’ problems reveal is the need for a global shift in the current approach. It’s not a matter of retracting our user-centred policy, but rather advocating for international recognition that the war on drugs is counterproductive.