excoptional
mostly-adequate-guide
excoptional | mostly-adequate-guide | |
---|---|---|
5 | 20 | |
11 | 23,177 | |
- | 0.2% | |
0.0 | 6.2 | |
over 2 years ago | 5 months ago | |
HTML | JavaScript | |
GNU General Public License v3.0 only | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
excoptional
-
From ES6 to Scala: Basics
> I mean Scala because I guess it actually has it, but worth pointing out it's like 30 LOC to define one for JS, depending on how many convenience methods you want.
Here's one I wrote: https://github.com/sbernheim4/excoptional
I fully believe it to be one of the best Option implementations in JS/TS
- Understanding the Power of Lisp (2020)
-
[AskJS] How often do you use the ES6+(ES7, ES8, ES9 and ES10) syntax? Do you like it? Does it help?
https://github.com/sbernheim4/excoptional is an option object for js/ts
-
Functors, Applicatives, and Monads in Pictures
One benefit to keeping your value wrapped in a Maybe is that as you transform and manipulate the value and pass it around in your system, you leave it up to the last place in your system that uses the value to define the fallback value in the case of a None rather than defining a fallback value part way through and establish a convention that the fallback value means nothing was found at some other part of your system.
Another benefit to using Maybes is that you avoid the rigamarole of null checks at every call site where you want to use the value. If you have a function that returns null or a value, whenever you call that function you'll always have to add an if guard to validate it's not null. If it is, that function itself may return null, and callers to it will again have to implement the same check.
I wrote a JS implementation of the Option object and the readme has lots of specific examples about these benefits: https://github.com/sbernheim4/excoptional
- Show HN: An Option Object for JavaScript and TypeScript
mostly-adequate-guide
- Mostly adequate guide to Functional Programming (in JavaScript)
-
Anyone use Git for writing projects?
This project might serve as inspiration: https://github.com/MostlyAdequate/mostly-adequate-guide
-
[AskJS] Is there a website out there for learning functional programming in javascript?
i like reading this book directly from github with dark mode, also the subheading don't work in the gitbook website and gitbook is abandoned, here's the github link: https://github.com/MostlyAdequate/mostly-adequate-guide/blob/master/SUMMARY.md
- FE devs, ceva sfaturi pentru un junior?
- How do you run an effective clean code book club, and looking for homework ideas?
- [AskJS] object oriented or functional , which one you guys oftenly use while writing code in vanilla JavaScript?
-
FP techniques that will help you write better JavaScript
It’s been a while since I focused on FP, but I recall finding this useful quite often and gleaning the concepts from it relatively easily.
https://github.com/MostlyAdequate/mostly-adequate-guide
I found a lot of articles like the OP, and ultimately they left me confused about the benefits in the beginning. I found it more useful to avoid one off articles and dig into larger pieces of work where the author put in much more care.
-
Help an old OO developer figure out current practices for structuring server side javascript?
On the book front, there are two that I am fond of which have a focus on JavaScript and FP, Professor Frisby’s Mostly Adaquate Guide, and Functional Light JavaScript. They are nice practical books that help you lean into JS’s strength as an FP language while writing real code.
-
Ask HN: Hey Functional Programmers, how did you learn functional programming
So, this is going to be an uphill battle for you. I suggest you actually learn Haskell first, and then you'll be able to apply its lessons to TypeScript.
Its tricky because these are patterns that are familiar in Haskell but are not really taught in other settings.
Additionally, to really learn these, you need to experiment with them. Use them. etc. That's pretty hard to do if the learning resources are mostly in haskell and you don't really understand it.
Alternatively, this might help: https://github.com/MostlyAdequate/mostly-adequate-guide
Also alternatively, what I would do is just go slowly through the fp-ts code. Look at it a piece at a time and slowly grow your understanding.
This may also help https://www.amazon.com/Domain-Modeling-Made-Functional-Domai...
- What is your most controversial Python-related opinion?
What are some alternatives?
sicp - HTML5/EPUB3 version of SICP
fp-ts-std - The missing pseudo-standard library for fp-ts.
Chimney - Scala library for boilerplate-free, type-safe data transformations
functional-programming-jargon - Jargon from the functional programming world in simple terms!
diode - Scala library for managing immutable application model
fp-ts - Functional programming in TypeScript
whirlisp - A whirlwind Lisp adventure
cheatsheets - Posit Cheat Sheets - Can also be found at https://posit.co/resources/cheatsheets/.
tyrian - Elm-inspired Scala UI library.
haskell-language-server - Official haskell ide support via language server (LSP). Successor of ghcide & haskell-ide-engine.
Converter - Typescript to Scala.js converter
gleam - ⭐️ A friendly language for building type-safe, scalable systems!