<story><title>Simple-twitter: A bare-bones Twitter clone implemented in a single file</title><url>https://github.com/Gabriel439/simple-twitter/blob/master/Main.hs</url></story><parent_chain><item><author>adrusi</author><text>&lt;i&gt;from a programming perspecting it looks really un-readable if you don&amp;#x27;t use FP.&lt;/i&gt;&lt;p&gt;I don&amp;#x27;t mean this as a slight, and I myself am slacking in the same regard, but it&amp;#x27;s depressing to me that this attitude is so prevalent among professionals.&lt;p&gt;There might be some good engineering reasons that tools like Docker and Kubernetes have much more traction than Nix, but &amp;quot;it&amp;#x27;s unfamiliar if you don&amp;#x27;t use FP&amp;quot; is a terrible one. It doesn&amp;#x27;t require that much investment to become familiar, and there seems to be many fantastic advantages to functional approaches.&lt;p&gt;Why does our industry tolerate this laziness?</text></item><item><author>Thaxll</author><text>Because this is a toy demo that doesn&amp;#x27;t do anything, in the real world you need much more that than just to do something simple.&lt;p&gt;Also it looks &amp;quot;beautiful&amp;quot; to your eye, from a programming perspecting it looks really un-readable if you don&amp;#x27;t use FP.&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;Gabriel439&amp;#x2F;simple-twitter&amp;#x2F;blob&amp;#x2F;master&amp;#x2F;Main.hs#L174&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;Gabriel439&amp;#x2F;simple-twitter&amp;#x2F;blob&amp;#x2F;master&amp;#x2F;Mai...&lt;/a&gt;</text></item><item><author>cblum</author><text>This is the first time I’m seeing that. It’s so beautiful. It’s elegant. I can understand it.&lt;p&gt;Why can’t the world move in that direction, instead of the insane Kubernetes hype that’s prevalent these days?</text></item><item><author>apetresc</author><text>A note to those who might dismiss this without looking at it carefully because you assume it&amp;#x27;s just some SPA that mocks the Twitter UI: it&amp;#x27;s actually a NixOps file (with everything inlined) that deploys the entire stack, including a full backend and database.</text></item></parent_chain><comment><author>chongli</author><text>&lt;i&gt;but &amp;quot;it&amp;#x27;s unfamiliar if you don&amp;#x27;t use FP&amp;quot; is a terrible one&lt;/i&gt;&lt;p&gt;I get the sense that there is a large contingent of programmers who feel disdain for mathematics and FP gets caught in the crossfire. It’s unfair toward both mathematics and functional programming.&lt;p&gt;I would love it if North American culture could adopt a better attitude toward mathematics in general. I think far too many people decide they’re bad at mathematics at some point in high school and never look back. This attitude is far less prevalent in many Asian cultures, where the emphasis is put on hard work instead of talent.</text></comment>
<story><title>Simple-twitter: A bare-bones Twitter clone implemented in a single file</title><url>https://github.com/Gabriel439/simple-twitter/blob/master/Main.hs</url></story><parent_chain><item><author>adrusi</author><text>&lt;i&gt;from a programming perspecting it looks really un-readable if you don&amp;#x27;t use FP.&lt;/i&gt;&lt;p&gt;I don&amp;#x27;t mean this as a slight, and I myself am slacking in the same regard, but it&amp;#x27;s depressing to me that this attitude is so prevalent among professionals.&lt;p&gt;There might be some good engineering reasons that tools like Docker and Kubernetes have much more traction than Nix, but &amp;quot;it&amp;#x27;s unfamiliar if you don&amp;#x27;t use FP&amp;quot; is a terrible one. It doesn&amp;#x27;t require that much investment to become familiar, and there seems to be many fantastic advantages to functional approaches.&lt;p&gt;Why does our industry tolerate this laziness?</text></item><item><author>Thaxll</author><text>Because this is a toy demo that doesn&amp;#x27;t do anything, in the real world you need much more that than just to do something simple.&lt;p&gt;Also it looks &amp;quot;beautiful&amp;quot; to your eye, from a programming perspecting it looks really un-readable if you don&amp;#x27;t use FP.&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;Gabriel439&amp;#x2F;simple-twitter&amp;#x2F;blob&amp;#x2F;master&amp;#x2F;Main.hs#L174&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;Gabriel439&amp;#x2F;simple-twitter&amp;#x2F;blob&amp;#x2F;master&amp;#x2F;Mai...&lt;/a&gt;</text></item><item><author>cblum</author><text>This is the first time I’m seeing that. It’s so beautiful. It’s elegant. I can understand it.&lt;p&gt;Why can’t the world move in that direction, instead of the insane Kubernetes hype that’s prevalent these days?</text></item><item><author>apetresc</author><text>A note to those who might dismiss this without looking at it carefully because you assume it&amp;#x27;s just some SPA that mocks the Twitter UI: it&amp;#x27;s actually a NixOps file (with everything inlined) that deploys the entire stack, including a full backend and database.</text></item></parent_chain><comment><author>hota_mazi</author><text>&amp;gt; It doesn&amp;#x27;t require that much investment to become familiar,&lt;p&gt;It requires a lot of investment to become familiar.&lt;p&gt;I&amp;#x27;ve found this mischaracterization very common among people who are proficient with FP: they forget where they came from, how long it took them to get familiar with all these concepts (the Haskell syntax first, then the FP mindset, then advanced concepts like monoids, functors, applicatives, monads), etc...</text></comment>