<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by DevOps World Class on Medium]]></title>
        <description><![CDATA[Stories by DevOps World Class on Medium]]></description>
        <link>https://medium.com/@devopsworldclass?source=rss-cb46da14ae24------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*glH5NYYnYXjDD8vezlop7g.png</url>
            <title>Stories by DevOps World Class on Medium</title>
            <link>https://medium.com/@devopsworldclass?source=rss-cb46da14ae24------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 02:08:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@devopsworldclass/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[MacBook Air M4 in Europe: Real Prices, 2-Year Warranty, and When You Shouldn’t Buy It]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://devopsworldclass.medium.com/macbook-air-m4-in-europe-real-prices-2-year-warranty-and-when-you-shouldnt-buy-it-02ecfed93c41?source=rss-cb46da14ae24------2"><img src="https://cdn-images-1.medium.com/max/2600/0*QjZyJfc81s6qZXfJ" width="4846"></a></p><p class="medium-feed-snippet">Prices verified on 25 Aug 2025. EU prices shown with VAT included.</p><p class="medium-feed-link"><a href="https://devopsworldclass.medium.com/macbook-air-m4-in-europe-real-prices-2-year-warranty-and-when-you-shouldnt-buy-it-02ecfed93c41?source=rss-cb46da14ae24------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://devopsworldclass.medium.com/macbook-air-m4-in-europe-real-prices-2-year-warranty-and-when-you-shouldnt-buy-it-02ecfed93c41?source=rss-cb46da14ae24------2</link>
            <guid isPermaLink="false">https://medium.com/p/02ecfed93c41</guid>
            <category><![CDATA[macbook]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[apple]]></category>
            <dc:creator><![CDATA[DevOps World Class]]></dc:creator>
            <pubDate>Mon, 25 Aug 2025 15:51:12 GMT</pubDate>
            <atom:updated>2025-08-25T15:51:12.315Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[MacBook Air M4 no Brasil: custo-benefício de ouro ou cilada elegante?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://devopsworldclass.medium.com/macbook-air-m4-no-brasil-custo-benef%C3%ADcio-de-ouro-ou-cilada-elegante-ac16d16b7d20?source=rss-cb46da14ae24------2"><img src="https://cdn-images-1.medium.com/max/2600/0*UNDr8mn9Qhu6VU1z" width="4846"></a></p><p class="medium-feed-snippet">Resumo em 30s para os apressados: o Air M4 trouxe 16 GB na base, duas telas externas e bateria longa. Nos EUA parte de US$ 999, no Brasil&#x2026;</p><p class="medium-feed-link"><a href="https://devopsworldclass.medium.com/macbook-air-m4-no-brasil-custo-benef%C3%ADcio-de-ouro-ou-cilada-elegante-ac16d16b7d20?source=rss-cb46da14ae24------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://devopsworldclass.medium.com/macbook-air-m4-no-brasil-custo-benef%C3%ADcio-de-ouro-ou-cilada-elegante-ac16d16b7d20?source=rss-cb46da14ae24------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac16d16b7d20</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[DevOps World Class]]></dc:creator>
            <pubDate>Mon, 25 Aug 2025 15:03:12 GMT</pubDate>
            <atom:updated>2025-08-25T15:03:12.421Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Ifs statements are the enemy of clean code, use this trick instead.]]></title>
            <link>https://devopsworldclass.medium.com/ifs-statements-are-the-enemy-of-clean-code-use-this-trick-instead-74f9e9795c29?source=rss-cb46da14ae24------2</link>
            <guid isPermaLink="false">https://medium.com/p/74f9e9795c29</guid>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[DevOps World Class]]></dc:creator>
            <pubDate>Sun, 29 Oct 2023 20:34:37 GMT</pubDate>
            <atom:updated>2023-10-29T20:34:37.004Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mxVjE5fu9eJUTaFx" /><figcaption>Photo by <a href="https://unsplash.com/@ilhamfzn?utm_source=medium&amp;utm_medium=referral">Mohamad Ilham Fauzan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>If statements are one of the most basic constructs in programming. They allow us to control the flow of our code based on certain conditions. However, if statements can quickly become cluttered and difficult to read, especially when they have multiple conditions.</p><p>In this article, we will discuss a better way to handle multiple conditions in Java: predicates. Predicates are functions that take a single argument and return a boolean value. They can be used to express complex conditions in a clear and concise way.</p><pre>if(accountCreation.plusYears(1).isBefore(LocalDate.now()) <br>  &amp;&amp; points &gt;= SECOND_LEVEL <br>  &amp;&amp; status != BLOCKED<br>) {<br>  // do something here<br>}</pre><p>Let’s take the code snippet above, it checks if the user has an account that is more than a year old AND if their points have reached the second level limit AND their account is not blocked. If these conditions are true, then the code inside the if block is executed.</p><p>However, this code snippet can be improved by using predicates. We can create three predicates, one for each condition:</p><pre>Predicate&lt;User&gt; isAccountOlderThanOneYear = user -&gt; user.getAccountCreation().plusYears(1).isBefore(LocalDate.now());<br>Predicate&lt;User&gt; isSecondLevel = user -&gt; user.getPoints() &gt;= SECOND_LEVEL;<br>Predicate&lt;User&gt; isBlocked = user -&gt; user.getStatus() == BLOCKED;</pre><p>These predicates can then be used to express the original condition in a more concise way:</p><pre>if(<br>  isAccountOlderThanOneYear<br>  .and(isSecondLevel)<br>  .and(isBlocked.negate())<br>  .test(user)<br> ) {<br>   // do something here<br> }</pre><p>This code snippet is easier to read and maintain than the original code snippet. It is also more flexible, as we can easily add or remove conditions by adding or removing predicates.</p><p>If you are using if statements with multiple conditions in your code, then I encourage you to try using predicates instead. You may be surprised at how much they can improve your code. 😉</p><p>Thanks for reading! I hope you enjoyed this article. Leave your comments bellow. See you next time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74f9e9795c29" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>