• @funkyb
    link
    English
    391 year ago

    Yea that’s not explained better than a math teach. They just swapped notation common in math, for notation common in one specific programming language. it’s only easier for the audience who happens to be familiar with programming in general, and that language in particular.

    • @[email protected]
      link
      fedilink
      English
      181 year ago

      one specific programming language

      I think you’d be hard pressed to find someone with any sort of programming background, even just as a hobbyist, who doesn’t understand that for loop notation, whether or not they know the specific language it’s from. (I couldn’t even tell you what specific language that’s from, because that notation matches so many different ones.)

      I have a 15 year old son; he definitely has not seen summation in math classes yet, but he has far more than enough programming experience (even just from school) to understand the for loop.

    • @[email protected]
      link
      fedilink
      English
      51 year ago

      I think the concept of a for loop is easier to learn, even for non-programmers, as biased as I may be.

    • @jwmgregory
      link
      English
      11 year ago

      not to resurrect a dead thread but yeah anyone remotely into computer science should be able to read pseudo code notation. it being variable in how people write it is part of what makes it a nice tool. this code could work in many contexts in many languages. it’s pretty precise for pseudo code, even.