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


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="Fl4m3Ph03n1x" data-post="1" data-topic="72361">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/fl4m3ph03n1x/48/11709_2.png" class="avatar"> Fl4m3Ph03n1x:</div>
<blockquote>
<p>If you have never seen Elixir before, I fear this may be too much. I have 3 functions instead of 1, I am using constructs that many people won’t recognize (<code>with</code>) and I am not sure that using the pipe operator <code>|&gt;</code> and the <code>case</code> expressions is obvious enough.</p>
</blockquote>
</aside>
<blockquote>
<ul>
<li>As someone new to the technology, would this be easy for you to understand?</li>
<li>Is there a way to make this example more idiomatic to Elixir, without increasing the complexity too much?</li>
</ul>
</blockquote>
<p>Hopefully this isn’t too ranty, but I wanted to share my thoughts. Two things:</p>
<ul>
<li>3 functions aren’t necessarily more complicated than 1. I wouldn’t worry about this.</li>
<li>Using language or framework specific grammar/syntax isn’t more complex* than keeping things “familiar”.</li>
</ul>
<p>With the availability of LLMs, the second point is especially true. The more you can leverage well-documented and widely known grammar/syntax, the more clear it will be. Regardless of whether the reader has been exposed them <em>a priori</em>. This is especially true in the age of AI, where a cogent explanation is only a chat prompt away. I understand the apprehension that “the reader may not know Elixir,” but these language features are designed to be intuitive and I think the industry has a tendency to over-estimate on how difficult it will be for someone to understand, for example, the pipe operator.</p>
<p><strong>Edit</strong>: Also fwiw I showed your <code>execute_v2</code> code to an intern with no Elixir experience and they said it was easy to read and they were able to describe what it does with good accuracy. I know this is a single data point, but my point here is that the average dev is pretty good at guessing what well-design syntax does.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="373192" 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/is-there-an-easier-way-to-elixirize-this-code/72361/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-373192" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="373192"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-last-post cat-last-post" title="Last post!"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <span class="all-loaded">— All posts loaded —</span>
</div></template></turbo-stream>