KittiesAreCute!
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 year 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 · 1 year ago
message-square
10
link
fedilink
  • MyFeetOwnMySoul@lemmy.ca
    link
    fedilink
    arrow-up
    5
    ·
    1 year 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
      ·
      1 year ago

      I mean it could just always return the same thing…

      • MyFeetOwnMySoul@lemmy.ca
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        I would think that role is filled by constants.

        • akari@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          3
          ·
          1 year ago

          where we’re going, constants are just functions

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

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

            • 𝘋𝘪𝘳𝘬@lemmy.ml
              link
              fedilink
              arrow-up
              1
              ·
              1 year 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: !programmerhumor@lemmy.ml

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.

  • 31 users / day
  • 369 users / week
  • 2.46K users / month
  • 10.1K users / 6 months
  • 2 local subscribers
  • 35.8K subscribers
  • 1.76K Posts
  • 30.3K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org