Skip to content

Instantly share code, notes, and snippets.

@rajeevchamoli
rajeevchamoli / gist:7d55f1c9b977fd87c24021f093146282
Created April 22, 2021 07:21 — forked from gwalkey/gist:c6d889884c3bb4a835c99f65b4d39ab6
Powershell Anonymous Lamda for Retry with Exponential Backoff
# https://vexx32.github.io/2018/10/26/Anonymous-Functions/
function Retry()
{
param(
[Parameter(Mandatory=$true)][Action]$action,
[Parameter(Mandatory=$false)][int]$maxAttempts = 3
)
$attempts=1
@rajeevchamoli
rajeevchamoli / introrx.md
Created October 5, 2019 23:59 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@rajeevchamoli
rajeevchamoli / algebraic-effects-series-1.md
Created October 5, 2019 23:58 — forked from yelouafi/algebraic-effects-series-1.md
Operational Introduction to Algebraic Effects and Continuations

Algebraic Effects in JavaScript part 1 - continuations and control transfer

This is the first post of a series about Algebraic Effects and Handlers.

There are 2 ways to approach this topic:

  • Denotational: explain Algebraic Effects in terms of their meaning in mathematics/Category theory
  • Operational: explain the mechanic of Algebraic Effects by showing how they operate under a chosen runtime environment

Both approaches are valuables and give different insights on the topic. However, not everyone (including me), has the prerequisites to grasp the concepts of Category theory and Abstract Algebra. On the other hand, the operational approach is accessible to a much wider audience of programmers even if it doesn't provide the full picture.