Skip to content

Instantly share code, notes, and snippets.

@rrag
rrag / README.md
Last active December 16, 2023 04:05
Yet another tutorial and Cheat sheet to Functional programming
View README.md

There are many tutorials and articles available online which explain functional programming. Examples show small functions, which are composed into others which again get composed. It is hard to imagine how it would all work, then come the analogies and then the math. While the math is necessary to understand it can be difficult to grasp initially. The analogies on the other hand, (at least for me) are not relatable. Some articles assume the reader knows the different terminologies of FP. Over all I felt it is not inviting to learn.

This introduction is for those who have had a tough time understanding those analogies, taken the plunge to functional programming but still have not been able to swim. This is yet another tutorial on functional programming

Terminology

Functions as first class citizens

Functions are first class means they are just like anyone else, or rather they are not special, they behave the same as say primitives or strings or objects.

@rrag
rrag / .block
Last active April 18, 2022 22:35
Renko Chart using React Stockcharts
View .block
license: MIT
height: 420
@rrag
rrag / .block
Last active July 31, 2021 16:26
Chart with a dark theme
View .block
license: MIT
height: 770
@rrag
rrag / .block
Last active March 12, 2021 15:27
CandleStickChart with MACD Indicator
View .block
license: MIT
height: 620
@rrag
rrag / .block
Last active August 19, 2019 11:06
AreaChart with React Stockcharts
View .block
license: MIT
height: 420
@rrag
rrag / .block
Last active August 19, 2019 11:06
CandleStickChart with React StockCharts
View .block
license: MIT
height: 420
@rrag
rrag / .block
Last active August 19, 2019 11:06
CandleStickChart using financetime scale with React StockCharts
View .block
license: MIT
height: 420
@rrag
rrag / .block
Last active August 19, 2019 11:06
CandleStickChart with volume histogram overlay
View .block
license: MIT
height: 420
@rrag
rrag / .block
Last active August 19, 2019 11:05
CandleStickChart with volume histogram overlay v2
View .block
license: MIT
height: 420
@rrag
rrag / .block
Last active August 19, 2019 11:05
Chart with Mouse pointer & Tooltip using React Stockcharts
View .block
license: MIT
height: 420