News for hackers. Stuff that matters.
Re:Functorio by dexwiz on Tuesday February 16, 2021 @04:19PM (#26158919)
The author is one of the main sources of Category Theory for Programmers material. Take that as you will.
Re:Functorio by munchbunny on Tuesday February 16, 2021 @04:44PM (#26159172)
> The author is one of the main sources of Category Theory for Programmers material. Take that as you will.

I'm having some trouble coming up with plausible inferences from that fact. Do you mean to imply that "when you have a hammer everything looks like a nail"?

Re:Functorio by dexwiz on Tuesday February 16, 2021 @05:22PM (#26159503)
That, or this article is an attempt to explain the author's speciality using a concrete example.
Re:Functorio by swagonomixxx on Tuesday February 16, 2021 @05:54PM (#26159837)
Pretty much. Bartosz's posts are pretty much exclusively about the superiority of Haskell and functional programming, with occasional forays into C++ to explain a functional concept in a more familiar syntax.
Re:Functorio by ksm1717 on Tuesday February 16, 2021 @05:15PM (#26159444)
Maybe more like: “the best hammers can treat anything as a nail”
Re:Functorio by steerablesafe on Wednesday February 17, 2021 @06:37AM (#26165280)
Including thumbs.
Re:Functorio by AnHonestComment on Tuesday February 16, 2021 @05:19PM (#26159468)
The realization at the end of your post is what the author is trying to get people to reach about software.

The category theory for programmers crowd argue that categorical diagrams (annotated graphs) are the right way to reason about software to gain insights — and the rest is describing the equivalence between functions in a type theory and maps in a category.

Your mental model of directed graphs is a functional model.

Re:Functorio by munchbunny on Wednesday February 17, 2021 @02:07AM (#26163574)
Your mental model of directed graphs is a functional model.

In the more general sense that may be true, but I was talking about Factorio specifically, where I'm using the graph representation to do the analysis.

Or rather, just because a functional interpretation exists doesn't mean I actually reach for the toolkit filed in my memory in the box labeled "functional stuff". In practice I mostly reach for the boxes I've filed away under "linear algebra", "graph theory", and "circuit design", which aren't things I typically reach for when I'm actually doing functional programming.

Re:Functorio by kortex on Tuesday February 16, 2021 @07:45PM (#26161078)
Well, this article helped me understand monads better than any of the other articles (though they provide important pretext).