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




  • guy@lemmy.worldtoProgramming@programming.dev*Permanently Deleted*
    link
    fedilink
    arrow-up
    42
    arrow-down
    2
    ·
    1 year 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.



  • Unless everybody fully customises the display and styling of the adverts for their own website, there’s going to be some sort of targetable, recognisable pattern in the way AdSense content looks. Most developers just want an easy drop-in solution.

    Furthermore, Google don’t necessarily want to give you that level of control over the adverts, because that makes it easier to game the ads system with malicious, fake and misleading clicks or invisible adverts. They need their tracking tech attached to it.





  • And I’m sure there are many cases where an attempted EEE failed, but that doesn’t get documented in the history, because you only notice it when it is effective.

    Meta isn’t even entering the Lemmy space yet, they’re entering the Mastodon space. They can hardly extend and extinguish Lemmy when they are just barely feature compatible to begin with. Yes it’s all Fediverse, but it’s pretty different.

    The audience, use cases and purposes are different between Lemmy and Threads. At least for now. Consider defederating if that changes


  • Yeah, but if they do try to dictate standards, then react, defederate, that’s all I’m saying. I just don’t think we need to be proactive here, our tools to react are fast acting and simple.

    If they do go for the dreaded Embrace, Extend, Extinguish method, then let’s ride the benefits of “Embrace” and lose them when they move on to the next steps.