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





  • This idiom confused me for the longest time, because I use “have” and “eat” very interchangeably. “Are you going to have dinner?” etc. I didn’t see that, rather, they meant “have” as a synonym for “keep”.

    And yeah, it’s definitely backwards. “Have” doesn’t suggest “will have”, it’s a present term only. I have a cake, can I eat it? Yes. Switching the order makes more sense. Furthermore, I think “keep” at least suggests long term.

    I propose “You can’t eat your cake and keep it too”

    Yet still, who ever eats a whole cake? I definitely keep some for later.



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