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








  • Yeah although misinformation is recently on the rise, there is that overabundance of information, I still feel like we’re in perhaps the easiest era ever for verifying facts.

    In the past when I called bullshit on my friend’s factoids, there wasn’t much I could do unless I went to a library and maybe there’d be a book on it, and I’d have not much choice but to trust that book. I believed so much nonsense people told me before that I can look up and discuss on a global knowledge in my pocket now, albeit requiring skill to do properly though





  • 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
    ·
    edit-2
    1 year 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


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



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