<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>stateful on Washington Botelho</title><link>http://www.wbotelhos.com/tags/stateful/</link><description>Recent content in stateful on Washington Botelho</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Mon, 10 Jan 2022 00:00:00 -0300</lastBuildDate><atom:link href="http://www.wbotelhos.com/tags/stateful/index.xml" rel="self" type="application/rss+xml"/><item><title>From Stateful Process to GenServer in Elixir</title><link>http://www.wbotelhos.com/from-stateful-process-to-genserver-in-elixir/</link><pubDate>Mon, 10 Jan 2022 00:00:00 -0300</pubDate><guid>http://www.wbotelhos.com/from-stateful-process-to-genserver-in-elixir/</guid><description>When we talk about Functional Languages like Elixir we&amp;rsquo;re talking about our functions being pure where the same input gives you the same output. We&amp;rsquo;re talking about not depending on keeping state receiving different mutations. So if you need to keep the state in Elixir, how can it be done? Well, GenServer does, but we&amp;rsquo;ll get there.
Goal We&amp;rsquo;ll create a stateful process and refactor it until gets the GenServer implementation, in this way you can learn how the state works and how GenServer encapsulates it.</description></item></channel></rss>