-
Today I spent a LOT of time solving AoC2024 day2 puzzle.
I solved it in three ways:
1. Javascript, just how I normally write it (somewhat functional programming)
2. A fully FP javascript solution
3. clojure solutionI realized some interesting things:
1. the functional programming js solution was very pretty and clean, and I think js is pretty good at FP. (I'm just learning FP so maybe I'm wrong)2. the effective LOC of both clojure and js solution were exactly the same, and I think in the cleanliness and readability department they are very similar. But maybe that is because I'm much more used to js
3. The effective LOC of the functional solutions were almost half the LOC of the "normal" solution
Here are the solutions
https://github.com/alirezaalavi87/advent-of-code/tree/main/2024/day2 -
Currently focused on quantum image processing.
The field is very new and in it's infancy but the implications will be game changing.