it'll get better , don't you trust me ?

seen from United States

seen from Brunei
seen from China
seen from United States
seen from Singapore
seen from China
seen from Australia
seen from Netherlands
seen from United States
seen from France

seen from Malaysia

seen from United States
seen from Malaysia

seen from United States
seen from United Kingdom
seen from Malaysia
seen from United States
seen from United States
seen from United Kingdom
seen from Bangladesh
it'll get better , don't you trust me ?
Robotgirl forces you to learn Haskell asmr
fuuucckkk im such a looppilled mutablechud i gotta get on the lambda grind and recursionmaxx
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
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
i’m chiefin on that software. i’m smokin straight functions.
took away too big a hit and it's made me realize what a monoid is and how monads relate to them
Over my head
Based on my recent experience with Kotlin, Groovy, and Scala, I assumed Clojure would interoperate well with Java classes. However, while attempting to override 3 methods, I quickly found myself attempting to use a macro (gen-class) whose documentation went way over my head. I spent hours and never got overrides working.
I get the impression Clojure takes functional programming a lot more seriously than OOP. Most of the examples I found used FP.
I did manage to write one non-trivial app, but to me the code I wrote looks almost unreadable. I missed having built-in "for" loops. I could get accustomed to operator-first syntax for arithmetic (instead of algebraic syntax), but method name before object name?? I'll never get comfortable with that.
It's a shame, because Clojure has some cool features. They're just not features I need right now.
It occurs to me that, in order for my "immersion method" of learning programming languages to work, my goal has to align with the strengths of the language I'm trying to learn.
I have a couple more languages I want to try. Next up: Swift!