• 0 Posts
  • 12 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
    95
    ·
    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.



  • The more control I have, the more likely I am to wake up, which is pretty annoying. Although, on the flip side, waking up through choice to avoid bad dreams is how I originally developed the skill of lucid dreaming. Noticing the signs of waking up and choosing to stay asleep is kind of a weird thing to do too, but it can lead to sleep paralysis.

    However in any case, the level of control I have varies. Often, I am able to fly from danger or decide something didn’t happen and try again. More rarely I know there are no consequences to any of my actions and can completely control space, time and narrative. It’s odd knowing it’s a dream, but it still feels real. Though, still with a dream brain memory and dream logic, I’m not necessarily thinking as sensibly as I would do when awake.




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