ProIT
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 years ago

What Imperative Programming Feels Like

media.mas.to

message-square
10
link
fedilink
54

What Imperative Programming Feels Like

media.mas.to

☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 years ago
message-square
10
link
fedilink
  • 𝘋𝘪𝘳𝘬@lemmy.ml
    link
    fedilink
    arrow-up
    7
    ·
    2 years ago

    yes();

    • MyFeetOwnMySoul@lemmy.ca
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      Now, I don’t functional (at all), but if you call a function with no parameters, doesn’t it imply side effects?

      • eluvatar@programming.dev
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        I mean it could just always return the same thing…

        • MyFeetOwnMySoul@lemmy.ca
          link
          fedilink
          arrow-up
          3
          ·
          2 years ago

          I would think that role is filled by constants.

          • akari@lemmy.blahaj.zone
            link
            fedilink
            arrow-up
            3
            ·
            2 years ago

            where we’re going, constants are just functions

            • MyFeetOwnMySoul@lemmy.ca
              link
              fedilink
              arrow-up
              1
              ·
              2 years ago

              Java 2: you can program anything you want but it has to be a function.

              • 𝘋𝘪𝘳𝘬@lemmy.ml
                link
                fedilink
                arrow-up
                1
                ·
                2 years ago

                Classes are just functions!

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

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: [email protected]

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

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

  • 462 users / day
  • 2.42K users / week
  • 3.83K users / month
  • 9.25K users / 6 months
  • 1 local subscriber
  • 37.7K subscribers
  • 1.82K Posts
  • 39.7K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org