/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

volgarev.me
| | abhinavomprakash.com

Defining recursion in terms of itself is an old joke among programmers. Despite the fact that it frustrates a lot of new-comers, we don't change it. I like to define recursion as "Iteration for the cool kids". I don't mean this in a snobbish, let-us-exclude-the-for-loopers kinda way, but rather in a tone of appreciation. Recursion is an elegant way of doing things. Recursive alogrithms are concise, have less noise and have immutability baked in (always a plus).
2.0 parsecs

Travel
| |
| | abdulapopoola.com

The biggest advantage of using tail calls is that they allow you to do extensive operations without exceeding the call stack. This makes it possible to do a lot of work in constant space without running into out of memory exceptions; this happens because the frame for the currently executing function is re-used by the...
1.9 parsecs

Travel
| |
| | danielpecos.com

Purpose of this post is to providea glimpse of the new features included in Java 8 that shiftthis language towards a more Functional Programming paradigm. But before, let's define what we understand for Functional Programming (FP). Functional programming key characteristics include: Higher Order Functions Pure Functions and Immutability Tail Call Recursion Higher Order Functions for a FP language means that functions are considered first class citizens, allowing the programmer to use them as any other value the language defines, for example, a Function value:
2.5 parsecs

Travel
| |
| | deniskyashif.com

How to define a recursive function in a language which doesn't support recursion using the Y combinator.
20.9 parsecs

Travel
|