Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. how many times in your life have you implemented recursive methods

how many times in your life have you implemented recursive methods

Scheduled Pinned Locked Moved The Lounge
62 Posts 45 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vasily Tserekh
    wrote on last edited by
    #1

    I can count with the fingers of my hand the times I had to implement recursive methods in my life, so what was the fuzz all about when you are in school ant programming teachers tell you that that is the holy grail of programming!!! ps: i know that is important but most of recursive functions are implememnted and you only have to use them.

    R C L D L 38 Replies Last reply
    0
    • V Vasily Tserekh

      I can count with the fingers of my hand the times I had to implement recursive methods in my life, so what was the fuzz all about when you are in school ant programming teachers tell you that that is the holy grail of programming!!! ps: i know that is important but most of recursive functions are implememnted and you only have to use them.

      R Offline
      R Offline
      realJSOP
      wrote on last edited by
      #2

      It seems like I do it over and over again... JSOP's Recursive Rule of Recursion: "No matter where you are, that's where you're at."

      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
      -----
      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
      -----
      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

      M M 2 Replies Last reply
      0
      • V Vasily Tserekh

        I can count with the fingers of my hand the times I had to implement recursive methods in my life, so what was the fuzz all about when you are in school ant programming teachers tell you that that is the holy grail of programming!!! ps: i know that is important but most of recursive functions are implememnted and you only have to use them.

        C Offline
        C Offline
        Chris Losinger
        wrote on last edited by
        #3

        not many. a dozen maybe. but it's good to know how to do it. when the situation arises and you need to get recursive, it helps to have done it before, because it can be a little tough to get your head around it sometimes.

        image processing toolkits | batch image processing

        G 1 Reply Last reply
        0
        • V Vasily Tserekh

          I can count with the fingers of my hand the times I had to implement recursive methods in my life, so what was the fuzz all about when you are in school ant programming teachers tell you that that is the holy grail of programming!!! ps: i know that is important but most of recursive functions are implememnted and you only have to use them.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Often enough, they come in handy when working with trees and graphs*, but of course I didn't have to, I might just as easily have written them with an explicit stack. They are, of course, not the holy grail of programming. * contrary to popular belief, they actually are used outside of academia.

          1 Reply Last reply
          0
          • V Vasily Tserekh

            I can count with the fingers of my hand the times I had to implement recursive methods in my life, so what was the fuzz all about when you are in school ant programming teachers tell you that that is the holy grail of programming!!! ps: i know that is important but most of recursive functions are implememnted and you only have to use them.

            D Offline
            D Offline
            DaveAuld
            wrote on last edited by
            #5

            Good question, check out the thread here[^].

            Dave Find Me On: Web|Facebook|Twitter|LinkedIn


            Folding Stats: Team CodeProject

            V J 2 Replies Last reply
            0
            • V Vasily Tserekh

              I can count with the fingers of my hand the times I had to implement recursive methods in my life, so what was the fuzz all about when you are in school ant programming teachers tell you that that is the holy grail of programming!!! ps: i know that is important but most of recursive functions are implememnted and you only have to use them.

              L Offline
              L Offline
              lewax00
              wrote on last edited by
              #6

              I've done it a few times...but who really needs to learn about them are the people who write the instructions on shampoo. I get stuck doing lather, rinse, repeat until I stack overflow because they forgot an end condition...

              A C 2 Replies Last reply
              0
              • C Chris Losinger

                not many. a dozen maybe. but it's good to know how to do it. when the situation arises and you need to get recursive, it helps to have done it before, because it can be a little tough to get your head around it sometimes.

                image processing toolkits | batch image processing

                G Offline
                G Offline
                gavindon
                wrote on last edited by
                #7

                Chris Losinger wrote:

                it helps to have done it before, because it can be a little tough to get your head around it sometimes.

                I agree, I still remember the smoke coming out of my classmates ears the section we were doing recursion in c++. course, come to think of it these were the same guys that responded with an answer of a "if" when asked what kind of loop they would use in "x" situation....... :doh: Thought my poor instructor was going to have a stroke on the spot. This was not in the beginning course either, it was in data structures. (3rd course in c++ for us, beginner, advanced, then data struct.).

                Common sense is not a gift it's a curse. Those of us who have it have to deal with those that don't.... Be careful which toes you step on today, they might be connected to the foot that kicks your butt tomorrow. You can't scare me, I have children.

                O L 2 Replies Last reply
                0
                • R realJSOP

                  It seems like I do it over and over again... JSOP's Recursive Rule of Recursion: "No matter where you are, that's where you're at."

                  ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                  -----
                  You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                  -----
                  "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                  M Offline
                  M Offline
                  Mike Hankey
                  wrote on last edited by
                  #8

                  Where ever you go, there you are.

                  VS2010/Atmel Studio 6.0 ToDo Manager Extension
                  Version 3.0 now available. There is no place like 127.0.0.1

                  D R 2 Replies Last reply
                  0
                  • V Vasily Tserekh

                    I can count with the fingers of my hand the times I had to implement recursive methods in my life, so what was the fuzz all about when you are in school ant programming teachers tell you that that is the holy grail of programming!!! ps: i know that is important but most of recursive functions are implememnted and you only have to use them.

                    M Offline
                    M Offline
                    Mike Hankey
                    wrote on last edited by
                    #9

                    Quite often, recursion is very handy.

                    VS2010/Atmel Studio 6.0 ToDo Manager Extension
                    Version 3.0 now available. There is no place like 127.0.0.1

                    R 1 Reply Last reply
                    0
                    • M Mike Hankey

                      Where ever you go, there you are.

                      VS2010/Atmel Studio 6.0 ToDo Manager Extension
                      Version 3.0 now available. There is no place like 127.0.0.1

                      D Offline
                      D Offline
                      Dr Walt Fair PE
                      wrote on last edited by
                      #10

                      When you go back, it's deja vu all over again.

                      CQ de W5ALT

                      Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

                      R M 2 Replies Last reply
                      0
                      • V Vasily Tserekh

                        I can count with the fingers of my hand the times I had to implement recursive methods in my life, so what was the fuzz all about when you are in school ant programming teachers tell you that that is the holy grail of programming!!! ps: i know that is important but most of recursive functions are implememnted and you only have to use them.

                        D Offline
                        D Offline
                        Dr Walt Fair PE
                        wrote on last edited by
                        #11

                        Lots!! If you use Prolog or any of the functional languages, it's extremely useful, fast and efficient to use (tail) recursion. In fact, I can hardly imagine programming anything in those languages without recursion.

                        CQ de W5ALT

                        Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

                        V 1 Reply Last reply
                        0
                        • D DaveAuld

                          Good question, check out the thread here[^].

                          Dave Find Me On: Web|Facebook|Twitter|LinkedIn


                          Folding Stats: Team CodeProject

                          V Offline
                          V Offline
                          Vasily Tserekh
                          wrote on last edited by
                          #12

                          ahahaha , that was a very good joke I understood it when I clicled at the link nice man!!

                          1 Reply Last reply
                          0
                          • L lewax00

                            I've done it a few times...but who really needs to learn about them are the people who write the instructions on shampoo. I get stuck doing lather, rinse, repeat until I stack overflow because they forgot an end condition...

                            A Offline
                            A Offline
                            AspDotNetDev
                            wrote on last edited by
                            #13

                            if (head.IsBloodyAndHairIsScrubbedOff) return BaseCase.Reached;

                            Thou mewling ill-breeding pignut!

                            1 Reply Last reply
                            0
                            • V Vasily Tserekh

                              I can count with the fingers of my hand the times I had to implement recursive methods in my life, so what was the fuzz all about when you are in school ant programming teachers tell you that that is the holy grail of programming!!! ps: i know that is important but most of recursive functions are implememnted and you only have to use them.

                              S Offline
                              S Offline
                              Steve Mayfield
                              wrote on last edited by
                              #14

                              Just make sure you get paid for number of lines executed instead of number of lines written! :thumbsup:

                              Steve _________________ I C(++) therefore I am

                              1 Reply Last reply
                              0
                              • V Vasily Tserekh

                                I can count with the fingers of my hand the times I had to implement recursive methods in my life, so what was the fuzz all about when you are in school ant programming teachers tell you that that is the holy grail of programming!!! ps: i know that is important but most of recursive functions are implememnted and you only have to use them.

                                A Offline
                                A Offline
                                AspDotNetDev
                                wrote on last edited by
                                #15

                                I imagine some developers come across recursion more often than others. For example, I sometimes deal with recursion when writing code that traverses the file system, but I don't do that very often. Video game developers might do it when they handle BSP, closest path algorithms, collision detection, and so on. And just because you don't use it often does not mean it's not incredibly useful. Some problems might seem insurmountable without recursion. You might also seldom use trigonometry, but when you need it you really need it.

                                Thou mewling ill-breeding pignut!

                                L E 2 Replies Last reply
                                0
                                • D Dr Walt Fair PE

                                  When you go back, it's deja vu all over again.

                                  CQ de W5ALT

                                  Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

                                  R Offline
                                  R Offline
                                  Ravi Bhavnani
                                  wrote on last edited by
                                  #16

                                  That reminds me... /ravi

                                  My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                                  1 Reply Last reply
                                  0
                                  • D Dr Walt Fair PE

                                    Lots!! If you use Prolog or any of the functional languages, it's extremely useful, fast and efficient to use (tail) recursion. In fact, I can hardly imagine programming anything in those languages without recursion.

                                    CQ de W5ALT

                                    Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

                                    V Offline
                                    V Offline
                                    Vasily Tserekh
                                    wrote on last edited by
                                    #17

                                    Hate prolog at so many levels that I thank god I dont need to use it in my normal life

                                    1 Reply Last reply
                                    0
                                    • D Dr Walt Fair PE

                                      When you go back, it's deja vu all over again.

                                      CQ de W5ALT

                                      Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

                                      M Offline
                                      M Offline
                                      Mike Hankey
                                      wrote on last edited by
                                      #18

                                      In my case it's veja du. Someplace I've never been and never want to go!

                                      VS2010/Atmel Studio 6.0 ToDo Manager Extension
                                      Version 3.0 now available. There is no place like 127.0.0.1

                                      1 Reply Last reply
                                      0
                                      • A AspDotNetDev

                                        I imagine some developers come across recursion more often than others. For example, I sometimes deal with recursion when writing code that traverses the file system, but I don't do that very often. Video game developers might do it when they handle BSP, closest path algorithms, collision detection, and so on. And just because you don't use it often does not mean it's not incredibly useful. Some problems might seem insurmountable without recursion. You might also seldom use trigonometry, but when you need it you really need it.

                                        Thou mewling ill-breeding pignut!

                                        L Offline
                                        L Offline
                                        lewax00
                                        wrote on last edited by
                                        #19

                                        Linear algebra is another one. Don't use it at all for most things, but good luck doing 3D graphics without it. It's good to have a varied tool kit, just in case.

                                        A V 2 Replies Last reply
                                        0
                                        • M Mike Hankey

                                          Where ever you go, there you are.

                                          VS2010/Atmel Studio 6.0 ToDo Manager Extension
                                          Version 3.0 now available. There is no place like 127.0.0.1

                                          R Offline
                                          R Offline
                                          realJSOP
                                          wrote on last edited by
                                          #20

                                          I feel more like I do now than I did a while ago.

                                          ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                                          -----
                                          You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                                          -----
                                          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups