My Lemmy Oracle
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Like A Duck@programming.dev to Programmer Humor@programming.dev · 2 years ago

if else if else if else

programming.dev

message-square
7
fedilink
87

if else if else if else

programming.dev

Like A Duck@programming.dev to Programmer Humor@programming.dev · 2 years ago
message-square
7
fedilink

Crosspost: https://lemmy.ml/post/488358

alert-triangle
You must log in or register to comment.
  • nobug-404@geddit.social
    link
    fedilink
    arrow-up
    5
    ·
    2 years ago

    case

    • Hauskrampf@ttrpg.network
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      switch case

      https://assets.tripplite.com/large-image/srcase6u-other01-l.jpg

  • glibg10b@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    You could’ve used an actual switch but you chose a USB hub instead

  • lemmyng@beehaw.org
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    I think the foreach one should have been recursion.

    • DeriHunter@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      2 years ago

      Nope recursion would be a bigger cable connected to same cable only smaller, connected to the same cable only smaller, etc…

      If this is how your recursion looks like you have a problem and you need to rethink your recursion step and and stop condition :)

      • MagicShel@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        I disagree. Recursion is the same thing over and over again until the exit condition. Nothing is getting smaller except the remaining entries.

        • DeriHunter@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          Of course it does, I suggest you go read about recursion. Here’s a link: https://www.cs.odu.edu/~toida/nerzic/content/recursive_alg/rec_alg.html

          Good luck

Programmer Humor@programming.dev

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

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 2.05K users / day
  • 3.59K users / week
  • 9.76K users / month
  • 19.9K users / 6 months
  • 1 local subscriber
  • 24.6K subscribers
  • 1.54K Posts
  • 53.5K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org