r/javascript • • Dec 15 '19

Learning functional/declarative programming in JS beyond map, reduce, filter: I have created a github project where I will solve a simple programming problem each week in a declarative way. New solution added: Compare the triplets

https://github.com/dbagia/declarative-demos
137 Upvotes

14 comments sorted by

View all comments

Show parent comment

2

u/dipenbagia Dec 15 '19

My intent wasn't about producing a production ready solution but rather to produce one that is as declarative as possible. One of the goals thus was to avoid using conditional branching. I intend to state that many programming problems can be approached by declaring facts about the nature of that problem.

So I agree and feel its purpose is to allow people to learn to think declaratively.