Every industry is full of technical hills that people plant their flag on. What is yours?

  • PeriodicallyPedantic@lemmy.ca
    link
    fedilink
    arrow-up
    11
    ·
    6 hours ago

    Dynamic typing sucks.

    Type corrosion is fine, structural typing is fine, but the compiler should be able to tell if types are compatible at compile time.

    • Nibodhika@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      4 hours ago

      This is one of those things like a trick picture where you can’t see it until you do, and then you can’t unsee it.

      I started with C/C++ so typing was static, and I never thought about it too much. Then when I started with Python I loved the dynamic typing, until it started to cause problems and typing hints weren’t a thing back then. Now it’s one of my largest annoyances with Python.

      A similar one is None type, seems like a great idea, until it’s not, Rust solution is much, much better. Similar for error handling, although I feel less strongly about this one.

    • RouxBru@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      4 hours ago

      Coming from a background where all the datatypes are fixed and static (C, PLCs) it took me so very long to get used to python’s willy nilly variables where everything just kinda goes, until it doesn’t. Then it breaks, but would’ve been fine if we just damn knew what these variables where

      Now my brain just goes “it’s all just strings”