• 0 Posts
  • 11 Comments
Joined 11 months ago
cake
Cake day: July 31st, 2023

help-circle
  • Konlanx@feddit.detoProgrammer Humor@lemmy.mlWith PieMixin
    link
    fedilink
    arrow-up
    25
    ·
    edit-2
    7 months ago

    This is likely referring to TypeScript.

    TypeScript has all of these patterns, they are used very frequently and they are necessary because TypeScript tends to be interesting from time to time since its types only exist at compile time, because it compiles to JavaScript, which is a language without types.

    TypeScript also allows any as a keyword, which says “I don’t know which type this is and I don’t care”, which still produces valid JavaScript. To get back to typed variables it is necessary to use typeof (or similar constructs like a type guard).

    https://www.typescriptlang.org/docs/handbook/2/typeof-types.html














  • It’s super simple!

    You click a square, it’s either a bomb or not. If it’s not, it will show a number telling you how many of the surrounding 8 squares contain a bomb. If a square has 0 bombs in surrounding squares it will just open, so you save unnecessary clicks. It’s the goal to click every square that does not contain a bomb. If you click a bomb, you lose.

    After understanding the rules you can beat the game super quick and easily.