it'll get better , don't you trust me ?
seen from United States

seen from Colombia

seen from United States
seen from United States
seen from China
seen from Iraq
seen from United States
seen from Poland

seen from France
seen from United States
seen from United States
seen from Macao SAR China
seen from United States
seen from Kazakhstan
seen from Poland

seen from United States
seen from Germany

seen from India

seen from Mexico
seen from Russia
it'll get better , don't you trust me ?
Robotgirl forces you to learn Haskell asmr
the main reason i’m learning haskell is that i’m fairly certain that the key to immortality is understanding what a monad is/j
fuuucckkk im such a looppilled mutablechud i gotta get on the lambda grind and recursionmaxx
Unlike many of the languages you're likely familiar with, microGRAM functions won't have formal arguments. Instead, the special arguments() function will return the list that was passed to the function when it was called, and it is the responsibility of the function to evaluate that list.
Basically, all microGRAM functions are variadic.
Feeling inspired by a post I saw a few months ago, I programmed a simple game of tic-tac-toe in python, in a single expression. Like regular functional programming, this means I can't mutate variables. But more than functional programming, this also means I can't
Declare variables at all
Declare functions
Use most loops and branch structures
The resulting program is 1730 characters long after removing all the non-strictly necessary whitespace and contains "lambda" 9 times.
The players are asked where they want to play using a number for each cell, in the configuration of a standard numpad. The program checks for invalid input too.
Source code under the cut
"A Gentle Introduction to Haskell" it feels like i'm being hit in the head with bricks
Explaining Monads like a Normal Person
Programming on main, yeah. This is a blogging site. Skip if you aren't into this.
If you look up the Wikipedia article on Monads, or any kind of explanation, they always overcomplicate the hell out of it.
"monads are a way to structure computations as a sequence of steps, where each step not only produces a value but also some extra information about the-"
what the hell are you talking about
You wanna know what monads are? They're actually stupid simple.
Any "object" is a combination of behavior and state. For example, a struct both holds data and has methods that act on it:
A monad is just an object that lets you give it behavior at runtime:
That's literally it. You give it a function to do, and it does it on the value it holds.
You'll often see these used for optional values - things that may or may not be what you expect at runtime:
"Optional<T>" (the value T could be present or absent)
"Either<X, Y>" (the value is either an X or a Y, but we don't know which yet)
You define behavior to be executed only if it's the right type, and it does nothing if it's the wrong type, all without you having to check.
You just tell it to do something regardless and it handles it:
It really is that simple. I hate how much bs people throw into it trying to explain these things.