• lIlIlIlIlIlIl@lemmy.world
    link
    fedilink
    arrow-up
    30
    arrow-down
    3
    ·
    1 年前

    Can someone help me understand this joke? Strongly typed languages generally have way better IDE support so this doesn’t make much sense to me at all

  • Bogasse@lemmy.ml
    link
    fedilink
    arrow-up
    17
    ·
    1 年前

    That’s also why I love duck typing but don’t find it practical. I can only have so much bread lying around.

  • Dagwood222@lemm.ee
    link
    fedilink
    arrow-up
    8
    ·
    1 年前

    I learned to type on an IBM Selectric that weighed more than a Volkswagen. Godzilla couldn’t have broken that thing.

  • Dejected Warp Core@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    1 年前

    Buy a Model-M and don’t look back. Things are built tough.

    Plus vintage models were designed for folks that coded in C/C++. So you know they’re up to the task. ;)

    • tal@lemmy.today
      link
      fedilink
      English
      arrow-up
      7
      ·
      edit-2
      1 年前

      The factory in Kentucky that used to make them was bought out by the employees when IBM stopped doing them and still makes new buckling-spring keyboards, so you can get new ones.

      Called Unicomp.

      https://www.pckeyboard.com/

      They do have a nipple mouse variant (“EnduraPro”) with mouse buttons. I have one, and I don’t recommend that. The buckling spring keys are as good as the day I got it, but I eventually wore out the mouse buttons, and I’ve no idea whether they’ve moved to new switches for the mouse buttons.

  • shalafi@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 年前

    Can someone explain the term? I’ve been in IT for 25 years, but haven’t written anything but Powershell.

    • Ashen44@lemmy.ca
      link
      fedilink
      arrow-up
      8
      arrow-down
      1
      ·
      1 年前

      When programming, data is stored in variables. In a weakly typed language you define a variable and you can put anything in it. Numbers, text, whatever. In a strongly typed language when you define a variable you also have to define what it can take. If you define a variable that can hold numbers, it can only hold numbers and never text or anything else.

      Weak typing makes code easier to write and more flexible while strong typing makes code more secure and harder to accidentally break. It’s mostly a preference thing in the end.

      • T. Hex@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        6
        ·
        1 年前

        It should be noted that “strong typing” and “weak typing” don’t have the same precise definition as static/dynamic typing.

        • mmddmm@lemm.ee
          link
          fedilink
          arrow-up
          3
          ·
          1 年前

          It normally means either some point on the strict/lenient/unityped spectrum the author thinks is strict typed, or static typed.

          And yeah, it’s a useless name, we could as well use it for languages that make the developer break keyboards.

      • xylogx@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 年前

        Just to add to this all data is ultimately stored as ones and zeros. In order to translate it to a piece of text or some type of number the computer needs to determine what type of data it represents. If the computer guesses the wrong type you just get garbage. Languages like C allow you to store data without rigid type definitions, it is up to the programmer to make sure the code gets the type right. In a strongly typed language you are not allowed to use variables of one type as some other type without some explicit conversion. It is safer but a little annoying.

  • bloup
    link
    fedilink
    arrow-up
    2
    ·
    1 年前

    I personally think this comic would have been a lot funnier if it had no caption

    • pyre@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      1 年前

      just a drawing of a bunch of broken keyboards? how are you supposed to make the connection?

      • bloup
        link
        fedilink
        arrow-up
        2
        ·
        1 年前

        Well, the title is “strongly typed”. Idk seems pretty obvious to me but maybe it isn’t

        • pyre@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          1 年前

          that’s the title of the post, the image doesn’t say it. and if it did it would’ve been a caption anyway

          • bloup
            link
            fedilink
            arrow-up
            2
            ·
            1 年前

            It’s literally the title of the comic, like if you click the link, that’s what the title of the comic is.