tucson.social
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
callmepk@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago

Me, migrating my code from JavaScript to TypeScript:

lemmy.world

message-square
23
link
fedilink
300

Me, migrating my code from JavaScript to TypeScript:

lemmy.world

callmepk@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago
message-square
23
link
fedilink
  • folkrav@lemmy.world
    link
    fedilink
    arrow-up
    81
    arrow-down
    3
    ·
    2 years ago

    Might as well not use TypeScript

    • PoopMonster@lemmy.world
      link
      fedilink
      arrow-up
      37
      ·
      2 years ago

      Just as irritating as seeing people use linters only to have a lot of files with @ts-ignore all over the place… Like why even bother?

      • master5o1@lemmy.nz
        link
        fedilink
        arrow-up
        7
        ·
        2 years ago

        oh you’ve got a private variable that I want to use? No worries, (foo as any)[‘secret’].

    • fusio@lemmy.world
      link
      fedilink
      arrow-up
      11
      ·
      2 years ago

      using any is actually much worse than using TS, because you’re basically telling the compiler “don’t help me here”… at least with JS the IDE is gonna help you… :/

    • seeyouinteawhy@lib.lgbt
      link
      fedilink
      English
      arrow-up
      9
      ·
      2 years ago

      That’s the joke

    • chicken@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      tbh I don’t remember why I’m using TypeScript

      • folkrav@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        2 years ago

        Cause otherwise it’s plain JS :/

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 99 users / day
  • 1.52K users / week
  • 3.27K users / month
  • 9.67K users / 6 months
  • 2 local subscribers
  • 36.5K subscribers
  • 1.74K Posts
  • 32K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org