• 1 Post
  • 128 Comments
Joined 1 year ago
cake
Cake day: June 6th, 2023

help-circle









  • 1 is also a number, a number we chose by convention to be a base unit for all numbers. You can break down every number down to this unit.

    20 is 20 1s. 1.5 is 1 and a half 1.

    If we have Pi as a unit, circumference of a circle would be radius*2 of Pi units. But everything that doesn’t involve Pi would be a fraction of Pi, e.g. a normal 1 is roughly 1/3 of Pi units, 314 is roughly 100 Pi units, etc. etc.










  • janAkali@lemmy.onetopissposting@lemmy.worldc posting
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    5 months ago

    Ew. I usually don’t use curly braced languages. But whenever I need to define collections on multiple lines I always put opening bracket on the end of the line and closing bracket on the same indent level as the start of the statement:

    let hello = [
      "Hello, there!",
    ]
    var
      a = true
      arr = [
        "line 1",
        "line 2",
      ]
    

  • I’m usually bad at chess, please point out if I’m wrong:

    c6 -> Ba4: bishop is safe, pin stands

    queen can’t take because:
    c6 -> Ba4 -> Qxa4: Rook and pawn for a Bishop

    Nc6: Knight is pinned

    Nc6 -> c4 -> a6 -> Ba4 and then push pawns? That’s something I’d have done.

    But realistically, I think pin, potential for blunder and applying pressure could be enough for a brilliant move, depending on rating.