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


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="zachdaniel" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/zachdaniel/120/31980_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  zachdaniel
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Creator of Ash</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p><a href="https://hexdocs.pm/spark/2.2.35/get-started-with-spark.html" class="inline-onebox" rel="noopener nofollow ugc">Spark — spark v2.2.35</a> Finally got around to providing an actual getting started for spark <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">  it’s not amazing, but it’s something and I’m limited on time <img src="https://forum.elixirforum.com/images/emoji/apple/sweat_smile.png?v=15" title=":sweat_smile:" class="emoji" alt=":sweat_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="349731" data-batch-url="/posts/batch_likers">
                        9
                      </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/how-have-you-used-metaprogramming-in-elixir/65818/22">Post #21</a>
	                </div>
	            </div>
              <div id="likers-container-349731" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="349731"
                     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 #21"></div>
  </section>
</div>
    <div class="postbit" id="350356" data-post-id="350356">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I’m using metaprogramming in <a href="https://github.com/phenixdigital/phoenix_storybook" rel="noopener nofollow ugc">phoenix_storybook</a> to discover the storybook content within the project files. This way, the storybook’s navigation maps directly to the storybook folder structure.</p>
<p>It extensively uses <a href="https://hexdocs.pm/elixir/Module.html#module-external_resource" rel="noopener nofollow ugc"><code>@external_resource</code></a> to recompile the stories and update the storybook’s navigation as soon as a relevant file has been updated.</p>
<p>Code <img src="https://forum.elixirforum.com/images/emoji/apple/point_right.png?v=15" title=":point_right:" class="emoji" alt=":point_right:" loading="lazy" width="20" height="20"> <a href="https://github.com/phenixdigital/phoenix_storybook/blob/main/lib/phoenix_storybook.ex" rel="noopener nofollow ugc">here</a></p>
<hr>
<p>Also leveraging on <a href="https://hexdocs.pm/elixir/Module.html#module-before_compile" rel="noopener nofollow ugc"><code>@before_compile</code></a> to read source files (and save the source content as a <em>generated meta function</em>) at compilation time while source files are available (they aren’t at runtime).</p>
<p>Code <img src="https://forum.elixirforum.com/images/emoji/apple/point_right.png?v=15" title=":point_right:" class="emoji" alt=":point_right:" loading="lazy" width="20" height="20"> <a href="https://github.com/phenixdigital/phoenix_storybook/blob/main/lib/phoenix_storybook/stories/story_source.ex" rel="noopener nofollow ugc">here</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="350356" 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/how-have-you-used-metaprogramming-in-elixir/65818/23">Post #22</a>
	                </div>
	            </div>
              <div id="likers-container-350356" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="350356"
                     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 #22"></div>
  </section>
</div>
    <div class="postbit" id="350491" data-post-id="350491">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p><a href="https://www.imperial.ac.uk/media/imperial-college/faculty-of-engineering/computing/public/2324-ug-projects/Neave,-Matt-Verlixir-Verification-of-Message-Passing-Systems.pdf" rel="noopener nofollow ugc">Verlixir</a> is an interesting proof of concept that converts the quoted expression version of an Elixir program into a Promela model.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="350491" 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/how-have-you-used-metaprogramming-in-elixir/65818/24">Post #23</a>
	                </div>
	            </div>
              <div id="likers-container-350491" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="350491"
                     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 #23"></div>
  </section>
</div>
    <div class="postbit" id="350552" data-post-id="350552">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Also linked <a href="https://www.doc.ic.ac.uk/~nd/dal/" rel="noopener nofollow ugc">here</a>, which has an interesting set of slides that use Elixir and TLA+ to teach distributed algorithms.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="350552" 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/how-have-you-used-metaprogramming-in-elixir/65818/25">Post #24</a>
	                </div>
	            </div>
              <div id="likers-container-350552" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="350552"
                     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>