You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Yet another tutorial and Cheat sheet to Functional programming
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.
Math extension functions and float-math functions for Kotlin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
⚠️ THIS LIST IS STALE/OUTDATED, DO NOT REFERENCE OR ASSUME ANYTHING IS ACCURATE
Kotlin Annoyances
These are things that I found annoying writing a complex library in Kotlin. While I am also a Scala developer, these
should not necessarily be juxtaposed w/ Scala (even if I reference Scala) as some of my annoyances are with features
that Scala doesn't even have. This is also not trying to be opinionated on whether Kotlin is good/bad (for the record, I
think it's good). I have numbered them for easy reference. I can give examples for anything I am talking about below
upon request. I'm sure there are good reasons for all of them.
A gd script implementing a day night cycle using maths only.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters