<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="83308" data-post-id="83308">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="david12" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  david12
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Great article about pros and cons of Elixir, in comparison to Ruby. <a href="https://www.netguru.co/blog/elixir-vs-ruby-which-one-is-the-language-for-your-next-project" rel="noopener nofollow ugc">https://www.netguru.co/blog/elixir-vs-ruby-which-one-is-the-language-for-your-next-project</a> and how to choose the right one depends on your next project. <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="83308" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/elixir-blog-posts/150/348">Post #347</a>
	                </div>
	            </div>
              <div id="likers-container-83308" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="83308"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #347"></div>
  </section>
</div>
    <div class="postbit" id="83397" data-post-id="83397">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="OvermindDL1" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/OvermindDL1/120/2677_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  OvermindDL1
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="david12" data-post="348" data-topic="150">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/d/ed655f/48.png" class="avatar"> david12:</div>
<blockquote>
<p>Great article about pros and cons of Elixir, in comparison to Ruby. <a href="https://www.netguru.co/blog/elixir-vs-ruby-which-one-is-the-language-for-your-next-project" rel="noopener nofollow ugc">https://www.netguru.co/blog/elixir-vs-ruby-which-one-is-the-language-for-your-next-project </a> and how to choose the right one depends on your next project. <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p>
</blockquote>
</aside>
<blockquote>
<p>Reading well-written Ruby code is also a pleasure.</p>
</blockquote>
<p>Isn’t this the case for about any language?  A good question is how often does the ‘well-written’ code pop up?  <img src="https://forum.elixirforum.com/images/emoji/apple/wink.png?v=15" title=":wink:" class="emoji" alt=":wink:" loading="lazy" width="20" height="20"></p>
<blockquote>
<p>Ruby on Rails, created back in 2005, was a really disruptive piece of technology. It changed how we write web applications - it was just mind blowing how much you could achieve by writing so little code. It also made prototyping applications faster.</p>
</blockquote>
<p>I’m guessing they weren’t Perl users.  ^.^</p>
<blockquote>
<p>Ruby is a really expressive language. A couple of lines in Ruby can do the same job as whole chunks of code in other languages.</p>
</blockquote>
<p>I’ve… not actually seen this yet for Ruby.  I keep hearing that such-n-such languages do this, but it is surprising how often they some how end up more verbose than ‘big-fast’ languages such as C++ or OCaml…  Anyone have some code that examples this that also fulfills the well-written part (please no perl-golfing horrors)?</p>
<p>Also, if they are really going to say FP is a Con for Elixir, then they really badly need to say that OOP is a Con for Ruby.  ^.^;</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="83397" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/elixir-blog-posts/150/349">Post #348</a>
	                </div>
	            </div>
              <div id="likers-container-83397" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="83397"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #348"></div>
  </section>
</div>
    <div class="postbit" id="83399" data-post-id="83399">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="AstonJ" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/AstonJ/120/15_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  AstonJ
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group">
<blockquote>
<p>Ruby is a really expressive language. A couple of lines in Ruby can do the same job as whole chunks of code in other languages.</p>
</blockquote>
</aside>
<aside class="quote no-group" data-username="OvermindDL1" data-post="349" data-topic="150">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/overminddl1/48/2677_2.png" class="avatar"> OvermindDL1:</div>
<blockquote>
<p>I’ve… not actually seen this yet for Ruby.</p>
</blockquote>
</aside>
<p>PHP</p>
<pre data-code-wrap="php"><code class="lang-php">class Ball
{
    private $_colour;
    
    public function __construct($colour)
    {
        $this-&gt;_colour = $colour;
    }
    
    public function is_red()
    {
        return ($this-&gt;_colour == 'red' ? true : false);        
    }
}

$the_ball = new Ball('green');
echo ($the_ball-&gt;is_red() ? '' : 'The ball is not red');
</code></pre>
<p>Ruby</p>
<pre data-code-wrap="ruby"><code class="lang-ruby">class Ball
  def initialize(colour)
    @colour = colour    
  end
  
  def is_red?
    @colour == "red"
  end
end

the_ball = Ball.new("green")
puts "The ball is not red" unless the_ball.is_red?
</code></pre>
<p><img src="https://forum.elixirforum.com/images/emoji/apple/heart.png?v=15" title=":heart:" class="emoji only-emoji" alt=":heart:" loading="lazy" width="20" height="20"></p>
<hr>
<p>Can even be written like this:</p>
<pre data-code-wrap="ruby"><code class="lang-ruby">class Ball
  def initialize(colour); @colour = colour; end
  def is_red?; @colour == "red"; end
end

the_ball = Ball.new("green")
puts "The ball is not red" unless the_ball.is_red?
</code></pre>
<p>Or this:</p>
<pre data-code-wrap="ruby"><code class="lang-ruby">class Ball
  def initialize colour; @colour = colour; end
  def is_red?; @colour == "red"; end
end

the_ball = Ball.new "green"
puts "The ball is not red" unless the_ball.is_red?
</code></pre>
<p><img src="https://forum.elixirforum.com/uploads/default/original/2X/6/6c3193d1dd46244da3c8c6f719c9f5e2abdd5ae8.gif?v=15" title=":003:" class="emoji emoji-custom only-emoji" alt=":003:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="83399" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/elixir-blog-posts/150/350">Post #349</a>
	                </div>
	            </div>
              <div id="likers-container-83399" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="83399"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #349"></div>
  </section>
</div>
    <div class="postbit" id="83404" data-post-id="83404">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="cmkarlsson" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/cmkarlsson/120/23000_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  cmkarlsson
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I don’t think your example shows that ruby gains a lot compared to php. The php and ruby are almost exactly the same when written in the full format. Only small syntactic differences. And for your shorter version, they can be written shorter in php as well.</p>
<aside class="quote no-group" data-username="OvermindDL1" data-post="349" data-topic="150">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/overminddl1/48/2677_2.png" class="avatar"> OvermindDL1:</div>
<blockquote>
<p>I keep hearing that such-n-such languages do this, but it is surprising how often they some how end up more verbose than ‘big-fast’ languages such as C++</p>
</blockquote>
</aside>
<p>This link has a research paper comparing erlang and C++ (<a href="https://www.researchgate.net/publication/221211369_Comparing_C_and_ERLANG_for_motorola_telecoms_software" rel="noopener nofollow ugc">https://www.researchgate.net/publication/221211369_Comparing_C_and_ERLANG_for_motorola_telecoms_software</a>)</p>
<p>The C++ code us 7.8 times larger for one of the components and 3 times larger for another component. An interesting quote from the paper (which I think is a summary of Ericssons report regarding the AXD301 ATM switch (which is based on 1M SLOC))</p>
<blockquote>
<p>Moreover, the systems developed in Erlang and in conventional languages exhibit similar error rates per unit SLOC, and similar SLOC per unit time programmer productivity. Hence, the Erlang system shows at least a fourfold gain in productivity and reduction in errors</p>
</blockquote>
<p>Perhaps modern C++/java are not as verbose as they once were and the gain is no longer as big but many years ago a ruby/python/perl project would see similar gains in reduction in SLOC compared to C++.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="83404" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/elixir-blog-posts/150/351">Post #350</a>
	                </div>
	            </div>
              <div id="likers-container-83404" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="83404"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #350"></div>
  </section>
</div>
    <div class="postbit" id="83406" data-post-id="83406">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="AstonJ" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/AstonJ/120/15_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  AstonJ
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="cmkarlsson" data-post="351" data-topic="150">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/cmkarlsson/48/23000_2.png" class="avatar"> cmkarlsson:</div>
<blockquote>
<p>I don’t think your example shows that ruby gains a lot compared to php. The php and ruby are almost exactly the same when written in the full format. Only small syntactic differences. And for your shorter version, they can be written shorter in php as well.</p>
</blockquote>
</aside>
<p>That’s fine <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"> different strokes for different folks.</p>
<p>Languages like PHP always made me want to scream, yet, I know many people who love it. That’s totally cool - the world would be a boring place if we all thought the same.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="83406" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/elixir-blog-posts/150/352">Post #351</a>
	                </div>
	            </div>
              <div id="likers-container-83406" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="83406"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #351"></div>
  </section>
</div>
    <div class="postbit" id="83407" data-post-id="83407">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="OvermindDL1" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/OvermindDL1/120/2677_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  OvermindDL1
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>(Initially, PHP I find abhorrant after near a decade working with it a decade ago, so not a great comparison language  ^.^; )</p>
<p>I’d find it far more succinct and safe both to do it in OCaml but I think Ruby is older than OCaml (mid 1990’s or something?), so bad example, but in perl that would be like:</p>
<pre data-code-wrap="perl"><code class="lang-perl">package Ball;
sub new {bless({colour =&gt; $_[1]}, $_[0])};
sub is_red {shift-&gt;colour == "red"}
</code></pre>
<p>Used like:</p>
<pre data-code-wrap="perl"><code class="lang-perl">my $ball = new Ball("green");
print("The ball is not red") if(!$ball-&gt;is_red());
</code></pre>
<p>If I remember right (been years…  &gt;.&gt;)</p>
<p>Or C++:</p>
<pre data-code-wrap="cpp"><code class="lang-cpp">struct Ball {
  string colour;
  Ball(string colour_) : colour(colour_) {}
  bool is_red() { return colour == "red"; }
}
</code></pre>
<p>Etc… etc…</p>
<p>A class example is a pretty bad example overall.  I’m guessing from the ‘can express more in less code’ that usually means algorithms, not syntax, hence why a class example was a poor example?</p>
<aside class="quote no-group" data-username="cmkarlsson" data-post="351" data-topic="150">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/cmkarlsson/48/23000_2.png" class="avatar"> cmkarlsson:</div>
<blockquote>
<p>I don’t think your example shows that ruby gains a lot compared to php. The php and ruby are almost exactly the same when written in the full format. Only small syntactic differences. And for your shorter version, they can be written shorter in php as well.</p>
</blockquote>
</aside>
<p>Yeah they really can…</p>
<aside class="quote no-group" data-username="cmkarlsson" data-post="351" data-topic="150">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/cmkarlsson/48/23000_2.png" class="avatar"> cmkarlsson:</div>
<blockquote>
<p>Perhaps modern C++/java are not as verbose as they once were and the gain is no longer as big but many years ago a ruby/python/perl project would see similar gains in reduction in SLOC compared to C++.</p>
</blockquote>
</aside>
<p>Modern ‘styles’ are significantly shorter yes, but even ‘back in the day’ they could have been shorter as well, just most people had longer ideas in mind because fortran and so forth.  I’d argue that even ‘back then’ C++ could still be about as succinct as Python in any non-trivial code, while still being substantially safer than the 3 listed languages as well.</p>
<aside class="quote no-group" data-username="AstonJ" data-post="352" data-topic="150">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/astonj/48/15_2.png" class="avatar"> AstonJ:</div>
<blockquote>
<p>Languages like PHP always made me want to scream, yet, I know many people who love it. That’s totally cool - the world would be a boring place if we all thought the same.</p>
</blockquote>
</aside>
<p>PHP is a mishmash of decisions, it’s very Perl’ish in many ways, but probably better, except it’s ecosystem, which is worse.  ^.^;</p>
<p>I may hate on PHP but it’s not because of the language itself, which actually has some really cool design decisions, but mostly in that the naming conventions are inconsistent, the ecosystem knows no concept of security (though it seems Ruby is similar on that as well from what I’ve read), etc… etc…  PHP7+ is actually rather blazing fast as well and on benchmarks I’ve seen it absolutely blowing Ruby away in speed, and it <em>easily</em> can be more succinct than ruby (you can do some rather impressive perl-style-golfing in PHP).</p>
<p>Even then, I’m unsure why Ruby would have been picked over, say, Python, and I’ve not seen anything that says that it would have if Rails was not built on it.  I’m unsure what it has over Python as of yet, especially as it’s slower and has a slightly worse and more verbose syntax…</p>
<p><em>/me thinks this may should go in another thread…</em></p>
<p>But still, I’m curious how does Ruby do more in given lines of code than, say, C++?  Sure I know C++ has <code>#include</code>’s and other such noise, but they are collapsed by any decent IDE, and even then Ruby was not competing with C++, it was competing with the likes of Perl, which yes Perl’s syntax is a bit of a horror aberration but it still seems far more ‘expressive’ than Ruby?  And I’m still curious what Ruby gains over Python as well?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="83407" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/elixir-blog-posts/150/353">Post #352</a>
	                </div>
	            </div>
              <div id="likers-container-83407" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="83407"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #352"></div>
  </section>
</div>
    <div class="postbit" id="83488" data-post-id="83488">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="david12" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  david12
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Unfortunately i think that not too often <img src="https://forum.elixirforum.com/images/emoji/apple/confused.png?v=15" title=":confused:" class="emoji" alt=":confused:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="83488" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/elixir-blog-posts/150/354">Post #353</a>
	                </div>
	            </div>
              <div id="likers-container-83488" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="83488"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #353"></div>
  </section>
</div>
    <div class="postbit" id="84391" data-post-id="84391">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="petecorey" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/petecorey/120/15530_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  petecorey
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>PSA: <a href="http://www.petecorey.com/blog/2018/06/04/be-careful-using-with-in-tests/" rel="noopener nofollow ugc">Be careful using Elixir’s “with” special form in tests</a>.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="84391" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/elixir-blog-posts/150/355">Post #354</a>
	                </div>
	            </div>
              <div id="likers-container-84391" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="84391"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #354"></div>
  </section>
</div>
    <div class="postbit" id="84788" data-post-id="84788">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="petecorey" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/petecorey/120/15530_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  petecorey
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Check out how I used Wireshark to help reduce the tedium of testing my Elixir-based serializers and parses for Bitcoin’s binary peer-to-peer protocol:</p>
<p><a href="http://www.petecorey.com/blog/2018/06/11/generating-test-fixtures-with-wireshark/" rel="noopener nofollow ugc">Generating Test Fixtures with Wireshark</a></p>
<p>FWIW, the tests resulted in an almost immediate positive return on investment. I immediately noticed an issue with one of my serializers that was causing all kinds of mysterious behavior within my node.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="84788" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/elixir-blog-posts/150/356">Post #355</a>
	                </div>
	            </div>
              <div id="likers-container-84788" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="84788"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #355"></div>
  </section>
</div>
    <div class="postbit" id="84961" data-post-id="84961">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="minhajuddin" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/minhajuddin/120/1533_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  minhajuddin
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Bring your variables back from the dead! <a href="https://engineering.tripping.com/bring-your-variables-back-from-the-dead-ea250cf58ba4" rel="noopener nofollow ugc">https://engineering.tripping.com/bring-your-variables-back-from-the-dead-ea250cf58ba4</a></p>
<p>Resurrect your variables after you restart an iex session.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="84961" data-batch-url="/posts/batch_likers">
                        5
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/elixir-blog-posts/150/357">Post #356</a>
	                </div>
	            </div>
              <div id="likers-container-84961" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="84961"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #356"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <a class="load-more-button" data-turbo-stream="true" href="/topics/150/load_more?page=33">Load more posts (902 remaining)</a>
</div></template></turbo-stream>