lemmy.amxl.com
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Mac@programming.dev to Programming@programming.dev · 1 year ago

Functional Programming vs. Object Oriented Programming

mmhaskell.com

external-link
message-square
35
fedilink
84
external-link

Functional Programming vs. Object Oriented Programming

mmhaskell.com

Mac@programming.dev to Programming@programming.dev · 1 year ago
message-square
35
fedilink
Functional Programming vs. Object Oriented Programming — Monday Morning Haskell
mmhaskell.com
external-link
  • Deckweiss@lemmy.world
    link
    fedilink
    arrow-up
    18
    arrow-down
    7
    ·
    1 year ago

    If your program functions, it’s functional.

    • mvirts@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      1 year ago

      Turns out I really love functional programming after all 😹

    • collapse_already@lemmy.ml
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 year ago

      What if my program is objectionable?

    • bitcrafter@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      And if it doesn’t have objects, then it has no class!

    • Pipoca@lemmy.world
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      1 year ago

      Functions, here, being the key word.

      Functions are pure mappings from input to output.

      • Deckweiss@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        wooosh

        • Pipoca@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          I agree with you that if you use functions it’s functional.

          But many people don’t really realize how that contrasts with procedures and procedural code.

          • superbirra@lemmy.world
            link
            fedilink
            arrow-up
            1
            arrow-down
            1
            ·
            1 year ago

            I’d be oriented to object

            • Pipoca@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              Apparently my brain silently inserted “ing with” into the middle of “program functions” a half dozen times without me noticing.

              • superbirra@lemmy.world
                link
                fedilink
                arrow-up
                1
                arrow-down
                1
                ·
                edit-2
                1 year ago

                perchance you were objectively oriented?

Programming@programming.dev

programming@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programming@programming.dev

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 150 users / day
  • 1.06K users / week
  • 2.56K users / month
  • 6.89K users / 6 months
  • 1 local subscriber
  • 20.1K subscribers
  • 2.2K Posts
  • 33.9K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • MaungaHikoi@lemmy.nz
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org