As someone who spends time programming, I of course find myself in conversations with people who aren’t as familiar with it. It doesn’t happen all the time, but these discussions can lead to people coming up with some pretty wild misconceptions about what programming is and what programmers do.

  • I’m sure many of you have had similar experiences. So, I thought it would be interesting to ask.
  • aluminium@lemmy.world
    link
    fedilink
    arrow-up
    86
    arrow-down
    3
    ·
    edit-2
    10 months ago

    A lot people compleatly overrate the amount of math required. Like its probably a week since I used a aritmetic operator.

    • MrScottyTay@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      71
      ·
      10 months ago

      Sometimes when people see me struggle with a bit of mental maths or use a calculator for something that is usually easy to do mentally, they remark “aren’t you a programmer?”

      I always respond with “I tell computers how to do maths, I don’t do the maths”

    • CheeseNoodle@lemmy.world
      link
      fedilink
      English
      arrow-up
      29
      ·
      10 months ago

      On the other hand in certain applications you can replace a significant amount of programming ability with a good undertstanding of vector maths.

      • huginn@feddit.it
        link
        fedilink
        arrow-up
        9
        ·
        10 months ago

        There’s a wide variety of types of programming. It’s nice that the core concepts can carry across between the disparate branches.

        If I’m doing a particular custom view I’ll end up using sin cos tan for some basic trig but that’s about as complex as any mobile CRUD app gets.

        I’m sure there are some math heavy mobile apps but they’re the exception that proves the rule.

        • kibiz0r
          link
          fedilink
          English
          arrow-up
          4
          ·
          10 months ago

          You should probably use matrices rather than trig for view transformations. (If your platform supports it and has a decent set of matrix helper functions.) It’ll be easier to code and more performant in most cases.

          • huginn@feddit.it
            link
            fedilink
            arrow-up
            3
            ·
            edit-2
            10 months ago

            I mean I’m not sure how to use matrices to draw the path of 5 out of 6 sides of a hexagon given a specific center point but there are some surprisingly basic shapes that don’t exist in Android view libraries.

            I’ll also note that this was years ago before android had all this nice composable view architecture.

            • kibiz0r
              link
              fedilink
              English
              arrow-up
              3
              ·
              10 months ago

              Hah, yeah a hexagon is a weird case. In my experience, devs talking about “math in a custom view” has always meant simply “I want to render some arbitrary stuff in its own coordinate system.” Sorry my assumption was too far. 😉

              • huginn@feddit.it
                link
                fedilink
                arrow-up
                2
                ·
                10 months ago

                Yeah it was a weird ask to be fair.

                Thankfully android lets you calculate those views separately from the draw calls so all that math was contained to measurement calls rather than calculated on draw.