• 0 Posts
  • 44 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


  • Exactly. When I was clean shaven, it was easy, I could just hold the shaver against the contours of my face.

    Now, with a large beard, I only need to shave every one or two weeks, but it takes much longer to do so and is much trickier. I’ve got to sculpt and shape a mound of hair manually. And every day I still brush and oil it.

    Clean or short shaven was actually less effort.





  • 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”.





  • guy@lemmy.worldtoPrivacy@lemmy.mlAndroid Microphone Snooping
    link
    fedilink
    arrow-up
    27
    ·
    edit-2
    4 months ago

    It’s scary how accurate they can predict you with what data they have; they don’t need to tap your microphone.

    You’re on a OnePlus; there’s always a status bar icon if the microphone is active.

    Think of what led to your conversation? Everything related to it you saw or searched online that could’ve later triggered you to talk about the subject, could also trigger them to serve you ads about it later. Perhaps your friend was the one, and the ad companies have linked you together, ie. by tracking your location and contacts.

    And now you’ve noticed the adverts, you’ll notice them much more, where you’d normally ignore them completely. Furthermore, if you noticed these ads, you might’ve clicked them or stopped scrolling and stared at them too long in a wtf moment and now the ad companies know, so they’ll serve you a whole lot more of the same.




  • guy@lemmy.worldtoMemes@sopuli.xyzStill fun though
    link
    fedilink
    arrow-up
    4
    ·
    5 months ago

    I have a basic £30 (£50 post inflation) pop-up frisbee tent and it works just fine on its own in heavy rain. Water only gets in when the door is open. It really just needs to be double layered, taut and have a decent groundsheet, but that can all come built-in without needing to be expensive


  • guy@lemmy.worldtoShowerthoughts@lemmy.worldEnglish is weird
    link
    fedilink
    arrow-up
    100
    ·
    edit-2
    7 months ago

    In the sentence “you have a problem”, “have” is the main verb. When reduced to the clitic “'ve”, it becomes a weak form and is only expected to be used as an auxiliary verb. These types of verbs must be followed by the main verb. “a” is not a verb. Thus, we insert “got”.

    If we do not insert “got”, the stress in the sentence moves and it sounds overly affected.

    I’m not too sure, but I think “be” (“is”, “are”) is the only verb that can be contracted and still remain a main verb. I’m not too sure why.