• 0 Posts
  • 21 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.





  • guy@lemmy.worldtoPrivacy@lemmy.mlAndroid Microphone Snooping
    link
    fedilink
    arrow-up
    27
    ·
    edit-2
    6 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@lemmy.worldI've been robbed!
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    9 months ago

    Consistency with proper scientific prefix is nice to have, but consistency within the computing industry itself is really important, and now we have neither. In this industry, binary calculations were centric, and powers of 2 were much more useful. They really should’ve picked a different prefix to begin with, yes. However, for the IEC correcting it retroactively, this has failed. It’s a mess that’s far from actually standardised now


  • guy@lemmy.worldtomemes@lemmy.worldI've been robbed!
    link
    fedilink
    arrow-up
    9
    arrow-down
    1
    ·
    edit-2
    9 months ago

    The IEC changing the definition of 1KB from 1024 bytes to 1000 bytes was a terrible idea that’s given us this whole mess. Sure, it’s nice and consistent with scientific prefix now… except it’s far from consistent in actual usage. So many things still consider it binary prefix following the JEDEC standard. Like KiB that’s always 1024 bytes, I really think they should’ve introduced another new unambiguous unit eg. KoB that’s always 1000 bytes and deprecated the poorly defined KB altogether