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


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="wojtekmach" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/wojtekmach/120/999_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  wojtekmach
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Hex Core Team</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>New post on the <a href="https://dashbit.co/blog" rel="noopener nofollow ugc">Dashbit blog</a>:</p>
<p><a href="https://dashbit.co/blog/req-api-client-testing" rel="noopener nofollow ugc">Req API Client Testing</a> – A guide through different testing approaches with Req-based API clients.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="322944" data-batch-url="/posts/batch_likers">
                        6
                      </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/1057">Post #1056</a>
	                </div>
	            </div>
              <div id="likers-container-322944" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="322944"
                     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 #1056"></div>
  </section>
</div>
    <div class="postbit" id="323209" data-post-id="323209">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Hi,<br>
I bumped on this article <a href="https://blog.sequin.io/liveview-is-best-with-svelte/" class="inline-onebox" rel="noopener nofollow ugc">LiveView is best with Svelte</a></p>
<p>It has an interesting story on problems with Live View, and what they came up with: They use Svelte components to wrap live view hook objects for easier JS interop.</p>
<p>I thought maybe you’ll find it interesting.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="323209" 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/1058">Post #1057</a>
	                </div>
	            </div>
              <div id="likers-container-323209" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="323209"
                     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 #1057"></div>
  </section>
</div>
    <div class="postbit" id="323187" data-post-id="323187">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>In the article they mention a specific scenario and admit that they’re unsure if they just don’t have the mental model right to solve it the “LiveView” way and that’s why it was felt difficult to do. It involved the consecutive selects. Does anyone have thoughts on what the LiveView way would look like?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="323187" 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/1059">Post #1058</a>
	                </div>
	            </div>
              <div id="likers-container-323187" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="323187"
                     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 #1058"></div>
  </section>
</div>
    <div class="postbit" id="323206" data-post-id="323206">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>on the linked HN, from the creator of LiveSvelte:</p>
<p>"That’s true. And another downside is that once you’re in the Svelte environment you can’t use your Phoenix components inside those Svelte components.</p>
<p>I’ve thought about adding a library of default Svelte components which mirror the core components you get from Phoenix out of the box. But then again you lose forms and changesets etc, it’s just annoying.</p>
<p>Where I see LiveSvelte fit is where you really need a lot of complex client side state. Sprinkle it in, but keep using phoenix components as your default, even with hooks."</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="323206" 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/1060">Post #1059</a>
	                </div>
	            </div>
              <div id="likers-container-323206" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="323206"
                     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 #1059"></div>
  </section>
</div>
    <div class="postbit" id="323224" data-post-id="323224">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I would try rendering all the second selects individually and controlling the visibility of them with the first, or setting the options of the second with a hook, using <code>"phx-update=ignore"</code>. Haven’t tried it though.</p>
<p>I thought their point that rewriting liveviews as live components is a lot of work was a bit odd. How often is one doing that that it’s an issue?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="323224" 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/1061">Post #1060</a>
	                </div>
	            </div>
              <div id="likers-container-323224" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="323224"
                     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 #1060"></div>
  </section>
</div>
    <div class="postbit" id="323436" data-post-id="323436">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<h3><a name="p-323436-elixir-phoenix-how-to-raise-custom-http-error-responses-in-your-rest-api-1" class="anchor" href="#p-323436-elixir-phoenix-how-to-raise-custom-http-error-responses-in-your-rest-api-1" aria-label="Heading link" rel="nofollow"></a>Elixir + Phoenix: How to Raise Custom HTTP Error Responses in Your REST API</h3>
<p>This blog post shows how, by adding a few lines of code, you can return a custom HTTP error response (with status code and custom message/payload) in your Elixir + Phoenix REST API, at any time in the request-response lifecycle.</p>
<aside class="onebox allowlistedgeneric" data-onebox-src="https://www.nicholasmoen.com/blog/phoenix-custom-error-responses/">
  <header class="source">
      <img src="https://www.nicholasmoen.com/assets/images/favicons/favicon-16x16.png" class="site-icon" alt="" width="16" height="16">

      <a href="https://www.nicholasmoen.com/blog/phoenix-custom-error-responses/" target="_blank" rel="noopener nofollow ugc">Nicholas Moen</a>
  </header>

  <article class="onebox-body">
    

<h3><a href="https://www.nicholasmoen.com/blog/phoenix-custom-error-responses/" target="_blank" rel="noopener nofollow ugc">Elixir + Phoenix: How to Raise Custom HTTP Error Responses in Your REST API |...</a></h3>

  <p>By adding a few lines of code, you can return a custom HTTP error response (with status code and custom message/payload) in your Elixir + Phoenix REST API, at any time in the request-response lifecycle.</p>


  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>
 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="323436" 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/1062">Post #1061</a>
	                </div>
	            </div>
              <div id="likers-container-323436" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="323436"
                     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 #1061"></div>
  </section>
</div>
    <div class="postbit" id="323618" data-post-id="323618">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Explore how Elixir’s Commanded library revolutionizes application development through CQRS and Event Sourcing</p>
<aside class="onebox allowlistedgeneric" data-onebox-src="https://curiosum.com/blog/segregate-responsibilities-with-elixir-commanded">
  <header class="source">
      <img src="https://cdn.prod.website-files.com/6734a45e36746d73f263268d/6842a2b12a3b755e611fd87b_Frame%20463%201.png" class="site-icon" alt="" width="32" height="32">

      <a href="https://curiosum.com/blog/segregate-responsibilities-with-elixir-commanded" target="_blank" rel="noopener nofollow ugc">curiosum.com</a>
  </header>

  <article class="onebox-body">
    <div class="aspect-image" style="--aspect-ratio:690/362;"><img src="https://cdn.prod.website-files.com/6780f4139ab3ae7f7313b0f4/694144687f6b404996a1d5e7_Segregate%20Responsibilities%20with%20Elixir%20Commanded.jpg" class="thumbnail" alt="" width="690" height="362"></div>

<h3><a href="https://curiosum.com/blog/segregate-responsibilities-with-elixir-commanded" target="_blank" rel="noopener nofollow ugc">Elixir Commanded: CQRS and Event Sourcing Implementation | Curiosum</a></h3>

  <p>Implement CQRS and Event Sourcing with Elixir Commanded library. Revolutionize application development through responsibility segregation patterns.</p>


  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>
 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="323618" 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/1063">Post #1062</a>
	                </div>
	            </div>
              <div id="likers-container-323618" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="323618"
                     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 #1062"></div>
  </section>
</div>
    <div class="postbit" id="323834" data-post-id="323834">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>My favorite GenServer pattern <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>
<aside class="onebox allowlistedgeneric" data-onebox-src="https://www.mattpo.pe/posts/erlang-delayed-send/">
  <header class="source">
      <img src="https://mattpo.pe/favicon-32x32.png" class="site-icon" alt="" width="16" height="16">

      <a href="https://www.mattpo.pe/posts/erlang-delayed-send/" target="_blank" rel="noopener nofollow ugc">mattpo.pe</a>
  </header>

  <article class="onebox-body">
    

<h3><a href="https://www.mattpo.pe/posts/erlang-delayed-send/" target="_blank" rel="noopener nofollow ugc">My Favorite Erlang Pattern</a></h3>



  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>
 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="323834" 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/1064">Post #1063</a>
	                </div>
	            </div>
              <div id="likers-container-323834" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="323834"
                     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 #1063"></div>
  </section>
</div>
    <div class="postbit" id="323870" data-post-id="323870">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>What if another client calls before the previous data is returned? You don’t want to clobber the <code>from</code> field blindly.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="323870" 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/1065">Post #1064</a>
	                </div>
	            </div>
              <div id="likers-container-323870" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="323870"
                     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 #1064"></div>
  </section>
</div>
    <div class="postbit" id="324039" data-post-id="324039">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Good question. I have used this in two scenarios. The first is a gen_server (B) that backed a port which a single process (A) pulled data from. A would call B which would then buffer an unknown amount of data from the port then rely back to A. So only one process knew that process B existed.</p>
<p>The second was a single process that would pull data from a network source. It had a queue of gen_servers which had call’d it for data, which it would reply to once it received a full chunk of data from the network. Once a waiter was finished with processing the data it would add itsself back to the queue by issuing a call and block for a reply. In this case the waiters didn’t step on each other’s toes.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="324039" 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/1066">Post #1065</a>
	                </div>
	            </div>
              <div id="likers-container-324039" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="324039"
                     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 #1065"></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=101">Load more posts (221 remaining)</a>
</div></template></turbo-stream>