---
title: "Discussion on \"What is recursion in programming and when to use it?\" | Hashnode"
description: "Discussion on \"What is recursion in programming and when to use it?\". Recursion is one of the most daunting techniques in programming. Learn when and how to use it and what are the pros and cons."
url: "https://hashnode.com/posts/what-is-recursion-in-programming-and-when-to-use-it/6267d0ccabc5d88e378d403e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What is recursion in programming and when to use it?](https://blog.thecode.xyz/what-is-recursion-in-programming-and-when-to-use-it?utm_source=hashnode&utm_medium=feed)

Recursion is one of the most daunting techniques in programming. Learn when and how to use it and what are the pros and cons.

Apr 26, 2022 · 4 min read · blog.thecode.xyz  
Updated May 10, 2022  
Read the article

-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#recursion](https://hashnode.com/tag/recursion)
-   [#computer-science](https://hashnode.com/tag/computer-science)
-   [#programming](https://hashnode.com/tag/programming)

## Written by

[Tomek Skupiński](https://hashnode.com/@focusinsky)

@focusinsky

  
[View profile](https://hashnode.com/@focusinsky)

Software Engineer, 1/3 of thecode.xyz

I’m Tomek, software engineer, working mostly with Ruby on Rails. I work remotely at Mixlr where every day we deliver live audio to millions of listeners. After hours, I write, read, and help my wife run theCode.xyz

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
