3 thoughts on “Embrace the Circularity! Recursion in PHP for WordPress

  1. Pingback: Embrace the Circularity! Recursion in PHP for WordPress | The WordPress C(h)ronicle

  2. I’ve used a similar pattern of recursion for some plugins I’ve built. I honestly felt a little bit…dirty using it for some reason. I’m glad to see someone else using it; now I can feel OK with it in my own code (provided it’s justified). 🙂

    Reply
    • Hi @Josh,

      Thanks for the comment.

      Not dirty at all. I was taught recursion back in my computer science courses in the 80’s. It was mind bending for me back then when I was new to recursion so I can see how some people might struggle with it.

      But for many problem there is not better algorithm than recursion; use it and be proud!

      -Mike

      Reply

Leave a reply

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code lang=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre lang="" extra=""> 

required