\

Ask HN: Are functional programmers more upset about how good AI is at coding?

10 points - yesterday at 7:14 PM


One might expect this since functional programmers pride themselves on the elegance of their code while programmers using hybrid languages just want to get the code working β€” elegance of the implementation is not that important to them.

  • purplemoonx

    today at 12:36 PM

    Author is confused.

    FP is disgusting looking anyway

    Once React came out with shit like

        useEffect(() => {}, [])
    
    And it was actually good and useful, I gave up on code aesthetics. Or rather, moved that thinking into overall comment, spacing, file breakdown and organization.

    • markfsharp

      yesterday at 7:22 PM

      I think the premise is mostly wrong, and it confuses functional programming with aesthetic programming.

        • amichail

          yesterday at 7:28 PM

          [flagged]

            • coldtea

              yesterday at 7:36 PM

              No. I mean, this framing is not even wrong, it's merely absurd.

                • amichail

                  yesterday at 7:40 PM

                  Maybe that's what most programmers using hybrid languages are secretly thinking.

              • moomoo11

                yesterday at 8:22 PM

                no. if we use that framing of yours, fp aim is to write a solution that flows like a river while imperative solution is like rolling up a ball of various solutions and then throwing it at the problem.

                  • amichail

                    yesterday at 8:28 PM

                    The point is the details of the implementation don't matter that much anymore. It's just something for the AI to work out β€” much like assembly code generation is for compilers.

                      • dcminter

                        today at 11:57 AM

                        And?

        • fwlr

          today at 1:17 AM

          β€œUpset” is not quite the right word - something more like β€œskeptical”, maybe? It does seem like AI programming tends to create the kind of problems that tend to push programmers toward functional programming.

          • austin-cheney

            yesterday at 11:41 PM

            The topic paragraph and comments indicate you already have your own conclusion to this question. If you already have an answer to your own question then why ask in the first place? This sounds like cognitive conservatism in search of support.

            • Shashiwatchdog

              yesterday at 7:45 PM

              I don't think functional programmers are necessarily more upset about AI being good at coding. If anything, FP tends to emphasize concepts that AI is already quite good at manipulating: composability, immutability, pure functions, and well-defined abstractions.

                • amichail

                  yesterday at 8:36 PM

                  If AI is already good at this, then it will naturally lead programmers who may not be good in that respect in that direction anyway via the code that it generates.

                  In other words, being a human expert in writing high quality implementations is less important now.

              • dcminter

                yesterday at 7:28 PM

                > since functional programmers pride themselves on the elegance of their code while programmers using hybrid languages just want to get the code working

                Says who?

                • beanjuiceII

                  yesterday at 7:17 PM

                  no not at all,AI works extremely well with this mode

                    • amichail

                      yesterday at 7:17 PM

                      That's not what I asked.

                  • mbac32768

                    today at 2:35 AM

                    Yes some of us are having a hard time with it.

                    All of the years we've spent on immutable by default, strong types and dreaming about the lambda has to matter! The AI that just rips out thousands of lines an hour of imperative and weakly typed code just has to be leading organizations to ruin! You'll see!

                    We worked hard at honing our craft. It's still meaningful, damnit!