Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
jackpot ( jackpot@lemmy.ml ) Banned to Programming@programming.dev · 3 years ago

when is it best to use a recursive function vs a for loop

message-square
message-square
21
link
fedilink
22
message-square

when is it best to use a recursive function vs a for loop

jackpot ( jackpot@lemmy.ml ) Banned to Programming@programming.dev · 3 years ago
message-square
21
link
fedilink
  • menzel ( menzel@programming.dev ) 
    link
    fedilink
    arrow-up
    2
    ·
    3 years ago

    Whenever it better expresses what you mean. In most cases it doesn’t make a huge difference because the compiler don’t care

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.

  • 81 users / day
  • 705 users / week
  • 1.71K users / month
  • 4.4K users / 6 months
  • 451 local subscribers
  • 29K subscribers
  • 3.02K Posts
  • 23.5K Comments
  • Modlog
  • mods:
  • snowe ( snowe@programming.dev ) 
  • Ategon ( Ategon@programming.dev ) 
  • UlrikHD ( UlrikHD@programming.dev ) 
  • bugsmith ( bugsmith@programming.dev ) 
  • Spyro ( Spyro@programming.dev ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code