• Onno (VK6FLAB)@lemmy.radio
            link
            fedilink
            arrow-up
            5
            arrow-down
            1
            ·
            10 days ago

            It’s funny. When I first started, functional programming was going to be the next big thing. It bubbled along for a decade or so. I interviewed company founders about their functional software projects.

            Nothing happened.

            Sure there are a few, let’s call them niche, applications, but you just have to look around and see that object orientation made a bigger splash and even that is beginning to be evaluated.

            Perhaps functional software will have its day in the limelight, but with the latest AI slop fad, it’s going to be a while.

            • wise_pancake@lemmy.ca
              link
              fedilink
              arrow-up
              3
              ·
              10 days ago

              The of the ideas of functional programming have gone on to influence the field.

              Algebraic data types and monads are used heavily in Swift/Rust/Scala/Typescript.

              Concepts like left/right associativity and pure functions are critical to the entire MapReduce paradigm of computing. Apache Spark, pandas, and the entire dataframe programming paradigm is basically functional programming (though most people suck at pandas and treat it like an object oriented tool).

              I think a lot of React is also heavily inspired by functional programming, and modern concurrency schemes are inspired by functional programming.

              F# and Haskell didn’t win the language wars. I’ve worked on one erlang project and it was neat, but I think you’re right, I mostly see MVC apps.

  • KickMeElmo@sopuli.xyz
    link
    fedilink
    arrow-up
    9
    ·
    10 days ago

    Could be worse. I once experimented with a debug-level function that ran on every line of text printed to the console. And had a typo, which threw an error. Which printed to the console.

  • Reptorian
    link
    fedilink
    arrow-up
    3
    ·
    10 days ago

    I had this problem only once. Luckily, I do not need recursion. I know my way using iterative process.

      • Reptorian
        link
        fedilink
        arrow-up
        2
        ·
        8 days ago

        I actually use repeat(iterations,index_name(optionall),);. No need for i++ or ++i for loop in many cases.

          • Reptorian
            link
            fedilink
            arrow-up
            2
            ·
            2 days ago

            Yeah. repeat() is unique to a few language. I think just Scala, and G’MIC has it. I use the second one. It’s more convenient than say for(p=0,p<5,++p,);. Sometimes, repeat(5,); suffice.