mostly-adequate-guide
Elm
Our great sponsors
mostly-adequate-guide | Elm | |
---|---|---|
20 | 198 | |
23,155 | 7,446 | |
0.4% | 0.6% | |
6.2 | 5.4 | |
4 months ago | about 1 month ago | |
JavaScript | Haskell | |
GNU General Public License v3.0 or later | BSD 3-clause "New" or "Revised" License |
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.
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?
Elm
-
Ludic: New framework for Python with seamless Htmx support
Elm [1] is based on a similar idea. Build your app from pure functions that return HTML tags.
- Learning Elm by porting a medium-sized web front end from React (2019)
-
Can you make your own JavaScript by implementing ECMAScript standard?
You also wouldn't really be creating your own new programing language. You would be creating something that can run JavaScript by following JavaScript standards and syntax. You might be able to add some non-standard features of your own on top of those standards, or include your own standard library of helpers or utilities, but you can't completely make a new or alternative language and then load it in the browser (or at least not by reimplementing ECMAScript standards... you actually can make your own language that runs within any Javascript enviroment, if you provide an interpreter or compiler that transforms it into valid JS. Some people have done something like this, eg Elm: https://elm-lang.org/).
-
What is the best way to present the user the results of Haskell computations?
You should at least have a look at https://elm-lang.org/ it is a pure functional language like Haskell (although with fewer fancy syntax/type classes) but it has some lovely libraries for visualisation and even with plain elm (+ elm-ui) doing string transformations can be easily done.
- Course using F#: Write your own tiny programming system(s)
-
Building React Components Using Unions in TypeScript
I get it. However, the whole point of using Unions to narrow your types, ensure only a set of possible scenarios can occur, and only access data of a particular union when it’s safe to do so. That’s some of what pattern matching can provide, and 100% of what using switch statements in TypeScript with their Discriminated Unions can provide. Yes, it’s not 100% exhaustive, but TypeScript is not soundly typed, and even Elm which is still has the same issue TypeScript does: You’re running in JavaScript where anything is possible. So it’s good enough to build with and much better than what you had.
- What's the state of the Elm repo? · Issue #2308 · elm/compiler
-
How to render a basic calendar UI in Elm
The beauty of a language like Elm (and other lambda-calculus / functional programming inspired languages) is that there's very little transformation involved in going from an idea to code. And that seems to have a big impact on getting things done.
- Como desenvolvi um backend web em Clojure
-
Is it possible to write games like Pac-Man in a functional language?
I think the most fun and approachable way for beginners to build games with functional programming is with Elm [1].
See a few (small, demo) games built by the community in [2] .
Notice Elm has abandoned the FRP approach in favor of Model-View-Update [3].
What are some alternatives?
fp-ts-std - The missing pseudo-standard library for fp-ts.
rescript-compiler - The compiler for ReScript.
fp-ts - Functional programming in TypeScript
haskelm - Haskell to Elm translation using Template Haskell. Contains both a library and executable.
functional-programming-jargon - Jargon from the functional programming world in simple terms!
purescript - A strongly-typed language that compiles to JavaScript
cheatsheets - Posit Cheat Sheets - Can also be found at https://posit.co/resources/cheatsheets/.
yew - Rust / Wasm framework for creating reliable and efficient web applications
gleam - ⭐️ A friendly language for building type-safe, scalable systems!
idris - A Dependently Typed Functional Programming Language
haskell-language-server - Official haskell ide support via language server (LSP). Successor of ghcide & haskell-ide-engine.
reflex - Interactive programs without callbacks or side-effects. Functional Reactive Programming (FRP) uses composable events and time-varying values to describe interactive systems as pure functions. Just like other pure functional code, functional reactive code is easier to get right on the first try, maintain, and reuse.