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

help-circle


  • "1" + 2 === "12" is not unique to JS (sans the requirement for the third equals sign), it’s a common feature of multiple strongly typed languages. imho it’s fine.

    EDIT: I did some testing:

    What it works in:

    • JS
    • TS
    • Java
    • C#
    • C++
    • Kotlin
    • Groovy
    • Scala
    • PowerShell

    What produces a number, instead of a string:

    • PHP
    • SQL
    • Perl
    • VB
    • Lua

    What it doesn’t work in:

    • R
    • C
    • Go
    • Swift
    • Rust
    • Python
    • Pascal
    • Ruby
    • Objective C
    • Julia
    • Fortran
    • Ada
    • Dart
    • D
    • Elixir

    And MATLAB appears to produce 51, wtf idk



  • So what’s the deal with GNU? When I first saw it, I was sure the G was silent, or formed a dipthong, like gnat or gnocchi or gnaw or gnarly or gnome or just any word starting with gn in English. But IRL, I’ve only heard it pronounced with a hard G, same with Gnome.



  • Usually they’re building the website with browserlist and polyfills, and they specify how old a browser they wish to support, usually by analysing percentages of public usage, or they allow types only supported in newer browsers. Meaning if they use a feature only available in newer browsers, then it won’t be automatically backported to support older browsers.

    But that’s only if they actually use those features, they’re just available to them. And it’ll only break in those places they do use them, which could be quite little of the site.

    So often it’s just “we can’t guarantee it’ll work in your old browser and enough of our users use newer browsers that we’ll block you and not care”.












  • With a little knowledge, it’s not very hard to make your own messaging app and share it with those you know. And there’s plenty projects online that give you what you need without having to write the code yourself. Alternatively, there’s just plenty dark web and under the radar apps already that won’t bend to this ruling.

    What it is, though, is very inconvenient and annoying to do so.

    But if you’re an actual criminal, then there is this solution here that can never be subject to this ruling.

    So what this clearly means is that the EU will violate the privacy of all the everyday people that don’t handle that inconvenience, pushing the serious criminals to dark channels.



  • guy@lemmy.worldtoProgramming@programming.dev*Permanently Deleted*
    link
    fedilink
    arrow-up
    40
    arrow-down
    2
    ·
    9 months ago

    I have to write powershell scripts and bash scripts at work. I hear people saying bash is great, powershell is bad, all the time in public, but honestly I feel like these people have barely actually written powershell. It’s a bit wordy, but it feels much more intuitive to me, much more akin to regular programming languages.