<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Robin Victorino</title>
    <description>The latest articles on Forem by Robin Victorino (@rvictorino).</description>
    <link>https://forem.com/rvictorino</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F159700%2F876a315c-7282-4873-a99f-7a20ccedcfcc.jpeg</url>
      <title>Forem: Robin Victorino</title>
      <link>https://forem.com/rvictorino</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/rvictorino"/>
    <language>en</language>
    <item>
      <title>Open/Closed principle: How do you convince other devs ?</title>
      <dc:creator>Robin Victorino</dc:creator>
      <pubDate>Thu, 20 Jun 2019 09:25:43 +0000</pubDate>
      <link>https://forem.com/rvictorino/open-closed-principle-how-do-you-convinced-other-devs-4i33</link>
      <guid>https://forem.com/rvictorino/open-closed-principle-how-do-you-convinced-other-devs-4i33</guid>
      <description>&lt;p&gt;Some of the SOLID principles are quite easy to understand and their benefits are quite explanatory: The Single responsibility principles, for example, has an obvious one. Software entities do only &lt;em&gt;one&lt;/em&gt; thing each. It becomes really easy to know what a bit of code does, even in the middle of a huge application, because it does &lt;em&gt;one&lt;/em&gt; thing.&lt;/p&gt;

&lt;p&gt;On the other hand, the Open/Closed principle is a bit more abstract.&lt;/p&gt;

&lt;p&gt;While suggesting to my boss that we could implement some pattern at some place in our app, I proudly said that this would be more respectful to the Open/Closed principle, &lt;em&gt;thus better&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;He asked why «adding classes» would be better than «editing method», since we would still be making changes; and that adding classes would make our app grow faster, which would then make it maybe even less maintainable.&lt;/p&gt;

&lt;p&gt;To be honest, I was not expecting that. And I realized I could justify interests of most programming principles I know, but not «adding classes» over «changing method», as both were «adding code» in a way.&lt;/p&gt;

&lt;p&gt;How would you describe benefits of trying to apply the Open/Closed principle ? Do you think I misunderstood it?&lt;/p&gt;

&lt;p&gt;In general, except «it's more maintainable so we will avoid expenses in the long run», what are your justifications when it comes to implementing some pattern / anything related to programming principles (especially to tech pairs / mostly if it's a lead/CTO/anyone tech and higher than you in your company hierarchy) ?&lt;/p&gt;

</description>
      <category>healthydebate</category>
      <category>solid</category>
    </item>
  </channel>
</rss>
