Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Insider News
  4. Functional programming is a lie

Functional programming is a lie

Scheduled Pinned Locked Moved The Insider News
comfunctionallearning
7 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kent Sharkey
    wrote on last edited by
    #1

    hartator[^]:

    When you first start learning about Elixir, your learn that states and side effects are evil, that every functions should be “pure”, taking strictly an input and returning strictly an output without mutating anything on the process.

    And so is the cake

    B B R M 4 Replies Last reply
    0
    • K Kent Sharkey

      hartator[^]:

      When you first start learning about Elixir, your learn that states and side effects are evil, that every functions should be “pure”, taking strictly an input and returning strictly an output without mutating anything on the process.

      And so is the cake

      B Offline
      B Offline
      BillWoodruff
      wrote on last edited by
      #2

      Hartator spake:

      Quote:

      Good programers will produce good code anyway. Bad programers will produce unreadable code anyway. Trying to make bad programmers better by imposing to everyone some magic programming paradigm is a mirage. It never worked and is the biggest lie in our industry.

      Perhaps DNA sequencing can locate the "good programmer" genes, and then we can cull the defective, putting them on a management/marketing fast-track ?

      «Beauty is in the eye of the beholder, and it may be necessary from time to time to give a stupid or misinformed beholder a black eye.» Miss Piggy

      L 1 Reply Last reply
      0
      • K Kent Sharkey

        hartator[^]:

        When you first start learning about Elixir, your learn that states and side effects are evil, that every functions should be “pure”, taking strictly an input and returning strictly an output without mutating anything on the process.

        And so is the cake

        B Offline
        B Offline
        Bernhard Hiller
        wrote on last edited by
        #3

        Hartator wrote:

        The absence of guidelines on this particular topic doesn’t help to understand where to draw the line. I think this absence just show how clueless we can be about functional programming.

        Who told him to replace his brain by a set of guide lines?

        1 Reply Last reply
        0
        • K Kent Sharkey

          hartator[^]:

          When you first start learning about Elixir, your learn that states and side effects are evil, that every functions should be “pure”, taking strictly an input and returning strictly an output without mutating anything on the process.

          And so is the cake

          R Offline
          R Offline
          Rob Grainger
          wrote on last edited by
          #4

          The author evidently doesn't understand functional programming, so decides to slag it off. IO is a monad. Monads were introduced by Haskell to allow a program to remain purely functional while actually things in the real world. Effectively, in this case, the state of the real world becomes a hidden parameter of the function.

          "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

          1 Reply Last reply
          0
          • K Kent Sharkey

            hartator[^]:

            When you first start learning about Elixir, your learn that states and side effects are evil, that every functions should be “pure”, taking strictly an input and returning strictly an output without mutating anything on the process.

            And so is the cake

            M Offline
            M Offline
            Marc Clifton
            wrote on last edited by
            #5

            Lies are stateful. They occur at all levels of state. Therefore, functional programming is NOT a lie. ;) Marc

            Latest Article - Create a Dockerized Python Fiddle Web App Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

            T 1 Reply Last reply
            0
            • B BillWoodruff

              Hartator spake:

              Quote:

              Good programers will produce good code anyway. Bad programers will produce unreadable code anyway. Trying to make bad programmers better by imposing to everyone some magic programming paradigm is a mirage. It never worked and is the biggest lie in our industry.

              Perhaps DNA sequencing can locate the "good programmer" genes, and then we can cull the defective, putting them on a management/marketing fast-track ?

              «Beauty is in the eye of the beholder, and it may be necessary from time to time to give a stupid or misinformed beholder a black eye.» Miss Piggy

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              BillWoodruff wrote:

              putting them on a management/marketing fast-track ?

              No, free ticket for the B-ark :rolleyes:

              Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

              1 Reply Last reply
              0
              • M Marc Clifton

                Lies are stateful. They occur at all levels of state. Therefore, functional programming is NOT a lie. ;) Marc

                Latest Article - Create a Dockerized Python Fiddle Web App Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                T Offline
                T Offline
                TheGreatAndPowerfulOz
                wrote on last edited by
                #7

                I C WHAT U DID THERE!

                #SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups