<?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 Ozgurdogan on Medium]]></title>
        <description><![CDATA[Stories by Ozgurdogan on Medium]]></description>
        <link>https://medium.com/@ozgurdogan646?source=rss-1ada8c71c89b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8bRBPzix0UMcIbSmGe68aA.jpeg</url>
            <title>Stories by Ozgurdogan on Medium</title>
            <link>https://medium.com/@ozgurdogan646?source=rss-1ada8c71c89b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 00:51:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ozgurdogan646/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[Nasıl Veri Bilimci Olunur ? (0)]]></title>
            <link>https://medium.com/@ozgurdogan646/nas%C4%B1l-veri-bilimci-olunur-0-903036371e15?source=rss-1ada8c71c89b------2</link>
            <guid isPermaLink="false">https://medium.com/p/903036371e15</guid>
            <category><![CDATA[veri-bilimi]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Ozgurdogan]]></dc:creator>
            <pubDate>Sun, 29 Mar 2020 11:11:57 GMT</pubDate>
            <atom:updated>2020-03-29T11:11:57.882Z</atom:updated>
            <content:encoded><![CDATA[<h3>Nasıl Veri Bilimci Olunur ? (0)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yijOSy9gkVrDIaUO2QAGwA.jpeg" /></figure><p>Nedir bu son zamanlarda herkesin dilindeki Veri Bilimi? Nasıl Veri bilimci olunur ? Bu yazımızda bu sorulara cevap arayacağız. Aslında bu yazı uzun bir serinin başlangıcı olacak. Veri bilimi eldeki verileri anlamlandırıp günümüz ve gelecek için çıkarımda bulunmaktır. Bir nevi geçmişten ders alıp geleceği şekillendirir veri bilimciler. Pek bilinenin aksine veri bilimi sadece programlamadan ibaret değildir. Programlamanın yanı sıra içinde istatistik, cebir, domain expertlik, veri analizi, AI, ML gibi disiplinler içerir. Eee 21.yüzyılın en seksi mesleği olmak kolay değil.(bkz : <a href="https://hbr.org/2012/10/data-scientist-the-sexiest-job-of-the-21st-century">link</a>)</p><p>Bir veri bilimcide bulunması gereken özellikleri şu şekilde sıralayabiliriz :</p><ul><li>Olasılık ve İstatistik</li><li>En az bir programlama dili (R/Python)</li><li>Veri Ayıklama</li><li>Makine Öğrenmesi / Derin Öğrenme</li><li>Büyük Veri İşleyebilme</li><li>Veri Görselleştirme</li><li>Veritabanı Yönetimi</li><li>Lineer Cebir/ Çok Değişkenli Analiz</li></ul><p>Yukarıda görüldüğü üzere veri bilimi çoğu kişinin kullandığında kendini kaggle master sandığı <em>df.describe()’</em>dan fazlasıdır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*CqfFFcRDaIjp9S0Su8skmA.gif" /></figure><p>Veri biliminin akış şeması ile devam edelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*ptMAZm7gzaRZ5nEv9iDIYg.jpeg" /></figure><p>Akış Şeması 5 aşamadan oluşuyor fakat ben şemanın başına bir ekleme yapmak istiyorum :</p><p>1- Doğru soruları sorup problemi belirlemek</p><p>2- Doğru veriyi toplamak</p><p>3- Veriyi temizleyip hazır hale getirmek (İşin %90 &#39;ı burası)</p><p>4- Çıkarım yapmak</p><p>5- Test etmek</p><p>6- Geliştirmek</p><p>Biz bu serimizde veri biliminin temelinden başlayıp en derin ücralarına kadar gideceğiz. Ama tabi ki yüzeysel bir şekilde. Her şeye değinemeyiz çünkü.</p><p>Şu entry’de ulaşabileceğiniz kaynaklar gerçekten çok iyi listelenmiş: <a href="https://eksisozluk.com/entry/66005355">Kaynak</a></p><p>Şiddetle yazılarını okumanızı tavsiye ettiğim Google Chief Decision Scientist Cassie Kozyrkov’ un yazılarına da buradan ulaşabilirsiniz: <a href="https://medium.com/@kozyrkov">Cassie Kozyrkov</a></p><p>Yazının buradan sonrası isteğe bağlıdır. Çünkü ilerleyen yazılarda ki içerik listesini paylaşacağım. O yüzden kapanışı burada yapacağım. Umarım yazılarımda size istediğim bilgileri verebilirim. Her türlü soruyu, düzeltmeyi yorum olarak ya da bana ulaşarak belirtebilirsiniz. Yazıyı şu alıntı ile bitirmek istiyorum :</p><p>“The world is one big data problem” — Andrew McAfee</p><h3>1- Temeller</h3><h3>2- İstatistik</h3><h3>3- Programlama</h3><h3>4- Makine Öğrenmesi</h3><h3>5- Doğal Dil İşleme (NLP)</h3><h3>6- Görselleştirme</h3><h3>7- Büyük Veri</h3><h3>8- Veriyi Temizleme</h3><h3>9- Toolbox</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=903036371e15" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dijital İkiz Kavramı Nedir]]></title>
            <link>https://medium.com/garantibbva-teknoloji/dijital-i%CC%87kiz-kavram%C4%B1-nedir-88824560702d?source=rss-1ada8c71c89b------2</link>
            <guid isPermaLink="false">https://medium.com/p/88824560702d</guid>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[industry-4-0]]></category>
            <category><![CDATA[decision-support-systems]]></category>
            <category><![CDATA[digital-twin]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Ozgurdogan]]></dc:creator>
            <pubDate>Wed, 27 Nov 2019 17:19:41 GMT</pubDate>
            <atom:updated>2024-11-25T06:45:14.035Z</atom:updated>
            <content:encoded><![CDATA[<h3>Dijital İkiz Kavramı Nedir ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ynMyUwQmXeSm1mNPz2sMOQ.jpeg" /></figure><p>Günümüzde teknolojinin sürekli gelişim halinde olmasından dolayı bazı yeni kavramlar yavaştan hayatımızda yer edinmeye başlamakta. Bunlardan biriside gelişen IoT’in doğurduğu dijital ikiz teknolojisi. Peki nedir bu dijital ikiz ve nerede kullanılır. Dijital ikiz fiziksel dünyadaki bir nesnenin, işlemin , mekanın hatta ve hatta insanın sanal ortamda birebir replikasını yani kopyasını oluşturmamızdır. Tabiiki de simülasyon ortamında varlığımızı oluşturup bırakmıyoruz. Oluşturduğumuz varlığa yerleştirdiğimiz sensörler sayesinde aldığımız canlı veriler ile sanal kopyamızı sürekli güncel halde tutuyoruz.Kabaca dijital ikiz teknolojisi 3 katmandan oluşuyor :</p><p><strong><em>1</em></strong><em>- Fiziksel Dünyadaki Varlığımız</em></p><p><strong><em>2-</em></strong><em> Sensörler</em></p><p><strong><em>3-</em></strong><em>Sanal Kopyamız</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*vixY7avX-m_so9dXeSwkTQ.png" /></figure><p>Peki asıl sorumuza gelelim dijital ikiz teknolojisi ne işimize yarar veya nerede kullanırız bu teknolojiyi ? Bu soruya örnek üzerinden giderek cevap vermek istiyorum. Dijital ikiz kavramı 2000&#39;li yılların başlarında tanımlandığında ilk kullananlardan biride NASA idi. Bildiğiniz üzere NASA yaptığı iş en maliyetli olan kurumlardan birisi hatta belki en maliyetlisi. Şimdi NASA’nın bir roketi uzaya fırlatmadan önce onun bir sanal kopyasını yani dijital ikizini oluşturduğunu düşünün. Gerekli testleri roket üzerinde yapmak hem maddi anlamda hemde insan gücü ve zaman anlamında baya büyük bir zarar oluşturacaktır. Fakat bu testleri birebir aynı olan sanal ortamda yapmak NASA gibi zorlu bir işteki kurum için baya karlı olacaktır. Mesela bir parçanın değişmesi gerekiyorsa uygun parçayı gerçekteki rokette deneme-yanılma yapmaktansa sanal kopyada alınan çıktılara göre uygun parça gayet rahatça takılabilir.Aynı zamanda roket üzerindeki sensörler sayesinde canlı olarak alınan veriler değerlendirir ve aracın herhangi bir arızası olup olmadığı da rahatça tespit edilebilir.Umarım örneği güzelce açıklayabilmişimdir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*JkhpVGegStpQJBS4ovK7Yw.jpeg" /><figcaption>Dijital İkiz Mimarisi</figcaption></figure><p>Kısacası dijital ikiz IoT, AI , ML , Software Analytics ve hatta Blockchain gibi teknolojilerin birleşmesi sonucu ortaya çıkmış çok katmanlı bir teknolojidir. Blockchain bu işin neresinde diye soranlarınız olabilir. Bizim sensörler sayesinde aldığımız verileri tutmak için belli yollarımız var. Mesela bu veriyi günümüzde genellikle kullanıldığı gibi merkezi bir yerde tutabiliriz. Ya da bu veriyi dağınık bir biçimde ,bir merkeze bağlı kalmadan saklayabiliriz. İşte burada Blockchain devreye giriyor. Ve verilerimizi daha güvenli bir şekilde depolayabiliyoruz.</p><p>Son olarak Gartner’in 2019 stratejik trendleri listesinde ilk 10’da AI , Blockhain gibi teknolojilerle birlikte Digital twinde yer almakta</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*Qnl2ooHk4tvc_yheXfb8hg.png" /></figure><p>Umuyorum ki dijital ikiz kavramını size güzel ve anlaşılır bir biçimde aktarabilmişimdir. Ve yazımı bir alıntı ile bitirmek istiyorum ;</p><p>“ Once a new technology rolls over you, if you’re not part of the steamroller, you’re part of the road.”</p><p>-Stewart Brand</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88824560702d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/garantibbva-teknoloji/dijital-i%CC%87kiz-kavram%C4%B1-nedir-88824560702d">Dijital İkiz Kavramı Nedir</a> was originally published in <a href="https://medium.com/garantibbva-teknoloji">Garanti BBVA Teknoloji</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TEST DRIVEN DEVELOPMENT]]></title>
            <link>https://medium.com/garantibbva-teknoloji/test-driven-development-bfe085501cb6?source=rss-1ada8c71c89b------2</link>
            <guid isPermaLink="false">https://medium.com/p/bfe085501cb6</guid>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Ozgurdogan]]></dc:creator>
            <pubDate>Wed, 07 Aug 2019 07:09:11 GMT</pubDate>
            <atom:updated>2025-08-26T06:30:46.283Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_DLuxiguekf9f29tgh_vUQ.png" /></figure><p>Some of the developers say Test Driven Design to TDD. But in this article, we will handle it as Test Driven Development. What is Test Driven development? TDD is a software development process which introduces by Kent Beck in 1999. You can find it in Beck’s Extreme Programming Book. “Test first” the main concept of this process. So we must write the tests first and then the code and we will avoid duplication because of this. TDD instructs developers to write new code only if an automated test has failed.</p><p>TDD has 3 phases:</p><p><strong>1- RED:</strong> First write a unit test in failure. The impossibility of compiling is a failure.</p><p><strong>2- GREEN</strong>: Write enough code to make the test pass. In this phase, you need to act like a programmer who has one simple task: write a straightforward solution that makes the test pass. In this phase, you are allowed to violate best practices and even duplicate code. Code duplication will be removed in the refactor phase.</p><p>3- <strong>REFACTOR</strong>: In this phase, you are allowed to change the code while keeping all tests green. But something important in this phase you must remove duplications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zp9Ltj_uXXj4f2IdlgFbCg.png" /></figure><p>This schema is cycle of “Test Driven Development”. Let’s explain this with an example.</p><p>I will write this test with C# but with this example, you can get the basic of TDD.</p><p>First, you need to create a new solution and two projects inside. One of them is a class library, the other one is a unit test. My project will be a calculator and I will test dividing by 0.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*YjI448J3qnpUn7Db9Gy1PA.png" /></figure><p>This is my Unit Test and I create a test method like “Number_Divide_By_Zero_Throws_DivideByZeroException_TestMethod()” and we expect it will throw a “DivideByZeroException”. As you see I get an error for “CalculatorDivideFunction()”. Because I wrote this test but not the code. Now I will generate a class named “CalculatorDivideFunction”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/1*wdJNr97fS3o5gIlUkKNL7A.png" /></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c1ec3d032e2189dfe4354c26d7265c3c/href">https://medium.com/media/c1ec3d032e2189dfe4354c26d7265c3c/href</a></iframe><p>Now we are in <strong>RED PHASE</strong> of TDD. The tests expect a “DivideByZeroExceptions” from us. But we are throwing a “NotImplementedException”. If we run this test like below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5E-Mo5Ky8JMR5_LQmta_xg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f0qEDiwI_q3G1ezU9qaThA.png" /></figure><p>We get fail messages. This was our RED PHASE. We are ready to go to <strong>GREEN PHASE</strong>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/467ad44943f98b72c5a72fd45e002bb9/href">https://medium.com/media/467ad44943f98b72c5a72fd45e002bb9/href</a></iframe><p>We changed “GetResultByDivide()” method and now it throws a “DivideByZeroException()”. Let’s run test.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cs6q3FM9HCAl0iMSOLH1Xg.png" /></figure><p>As you see our test situation changed from red to green. After this phase you can refactor your code.</p><p>What are the advantages of TDD? When you write the test cases first, you think more clearly about the system requirements and more critically about the corner cases. It’s also a safer way to refactor the code. When writing TDD there are tests for a certain piece of logic. <br>When you refactor the code, you might break something, but with this approach you know the tests will have your back. With TDD you can create <a href="https://medium.com/@ozgurdogan646/solid-principles-a01e691997c">SOLID CODE</a>.</p><p>In every solution we develop at Garanti BBVA, testing plays a critical role as we touch the lives of millions of users, whether through code designed for internal use or for end-users. Tests are essential for anticipating potential errors, identifying situations that could negatively impact user experience, and preventing such issues. Among the various testing methods we use, TDD (Test Driven Development) stands out as a key approach to ensuring clean code and maintaining proper, logical coding standards.</p><p>I tried to explain what TDD is as much as I can. If you apply TDD to your small projects, you can get better in this job because TDD is easy to learn and difficult to master. So, you should do practice. I am going to finish this article with a quotation.</p><p>“Don’t fix bugs later; fix them now.” - <em>Steve Maguire</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bfe085501cb6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/garantibbva-teknoloji/test-driven-development-bfe085501cb6">TEST DRIVEN DEVELOPMENT</a> was originally published in <a href="https://medium.com/garantibbva-teknoloji">Garanti BBVA Teknoloji</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SOLID PRINCIPLES]]></title>
            <link>https://medium.com/garantibbva-teknoloji/solid-principles-a01e691997c?source=rss-1ada8c71c89b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a01e691997c</guid>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Ozgurdogan]]></dc:creator>
            <pubDate>Fri, 02 Aug 2019 12:17:04 GMT</pubDate>
            <atom:updated>2022-09-06T06:14:03.633Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*8NmWpRtRCvQNSULTWF1Liw.png" /></figure><p>Our first question is what is SOLID principles and why are we going to use them? Let’s explain. SOLID is an acronym for 5 important principle when doing OOP . SOLID principles was introduced by Robert C. Martin(Uncle Bob) in his Design Principles and Design Patterns book .Although Micheal Feather is the guy who introduce us this acronym .So we’re done with history part let’s talk about benefits of SOLID . SOLID principles make our code cleaner , more understandable and readable . And it reduces the complexity of your code by the way. You should feel like an artist as well as a developer . And these principles make our art more sightly. Okey what is this principles :</p><p><strong>S</strong> — Single Responsiblity</p><p><strong>O</strong> — Open/Closed</p><p><strong>L</strong> — Liskov’s Substition</p><p><strong>I </strong>— Interface Segregration</p><p><strong>D </strong>— Dependency Inversion</p><p>This principles also increase the code’s quality. And quality is important for developers like us because maybe someone else will read this code and they must understand your code. Shortly your code must readable for codereview.<br>Don’t forget “The only valid measurement of code quality: WTFs / Minute”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*rjMLJ3-mU4STJDKeXvfrYA.png" /></figure><h3><strong>S</strong> — Single Responsiblity</h3><p>The purpose of single responsibility is reducing the workload of methods and obstruct multiple jobs of one method. In this way, if a project needs a simple change in the future, you don’t need to deal with big code stack. Don’t forget every method, class or function must have just one responsibility actually it should only have one reason to change. Also, this principle provides a faster and easier test for us. Let’s analyze this principle with an example.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/321496ae5756b98696cdae5176164db4/href">https://medium.com/media/321496ae5756b98696cdae5176164db4/href</a></iframe><p>In here DatabaseManagment() method connect to database then insert and update data in the database. But this situation against to Single Responsibility Principle. We must separate the blocks which insert and update. Examine the correct one.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/930b7dd2a1a82bc92cafe3f0b8b1b6d7/href">https://medium.com/media/930b7dd2a1a82bc92cafe3f0b8b1b6d7/href</a></iframe><p>Now we have 2 different methods UpdateDatabase() and InsertToDatabase() Both of these methods have just one task. If we change inserting stuff in our project we just change InsertToDatabase() method with this, we accord to Single Responsibility Principle.</p><h3>O — Open/Closed Principle</h3><p>Open/Closed means your objects open for extension, closed for modification. What does it mean? It means the objects which we create open to all kinds of development or addition but there must be no change/modification in these objects.With this principle, we can develop our code without any problem on object-base. Let’s explore the concept further with a quick code example.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d7f8092a253da426e0f355bbb23348ee/href">https://medium.com/media/d7f8092a253da426e0f355bbb23348ee/href</a></iframe><p>Just imagine we have a Car class and it has Color, Age and Model properties. For example a few months after writing this code we just want to add sticker property to the car. If we change Car class there may be some errors, problems. Or assume that this class is part of a big project. Probably there will be a huge problem. So what should we do?</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8ab94d73f94d62aeb5af067cc5249221/href">https://medium.com/media/8ab94d73f94d62aeb5af067cc5249221/href</a></iframe><p>By extending the <em>Car </em>class we can be sure that our existing application won’t be affected.</p><h3>L — Liskov’s Substitution Principle</h3><p>This principle most difficult one to understand.It’s a little complicated.Barbara Liskov put forward LSP in 1988.The Liskov Substitution Principle says that the object of a derived class should be able to replace an object of the base class without bringing any errors in the system or modifying the behavior of the base class. Also with LSP we can avoid dummy codes.</p><p>The definition of the LSP by prominent computer scientist Barbara Liskov is a bit dry, so it requires further explanation. Here is the official definition:</p><p>“If S is a subtype of T, then objects of type T may be replaced with objects of type S, without breaking the program.”</p><p>This can be formulated mathematically as<br>“Let q(x) be a property provable about objects x of type T.<br>Then q(y) should be true for objects y of type S, where S is a subtype of T. ” Explain it with an example .</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/05ca17baef4a3ed18de896c9ec85d7e4/href">https://medium.com/media/05ca17baef4a3ed18de896c9ec85d7e4/href</a></iframe><p>In this example, first, we create the Dog class with the method GetCountOfLeg(). Then we create the Chicken class which inherits the Dog class as well as override the GetCountOfLeg() method of the Dog class. In this case, Chicken can not be replaced by a Dog, and it will print Dog’s count of the legs.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/13871f9446fc2603e0b32c1e05b1b636/href">https://medium.com/media/13871f9446fc2603e0b32c1e05b1b636/href</a></iframe><p>We created a generic base class such as Animal for both Dog and Chicken.Now we can Replace the Animal class object with its both of subtypes Dog and Chicken, and it will comply the LSP principle .</p><h3>I — Interface Segregation Principle</h3><p>Interface segregation is easy to understand as against the other ones.Our purpose with this principle there must be no unnecessary methods the interfaces which is the implemented . It means get rid of surplus. So a client should never be forced to implement an interface that it doesn’t use or clients shouldn’t be forced to depend on methods they do not use . Here is the example :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/01fa5dba03dacf16e89f531c87b66a1b/href">https://medium.com/media/01fa5dba03dacf16e89f531c87b66a1b/href</a></iframe><p>Here we created an interface ICar() with engine and airConditioner() . Now create two class BMW and Renault .And assume Renault has no air conditioner.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dc87b6bad35969ae1cbd99e4b9936465/href">https://medium.com/media/dc87b6bad35969ae1cbd99e4b9936465/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6b32b1ffd91cb46958b2010a05c68c5b/href">https://medium.com/media/6b32b1ffd91cb46958b2010a05c68c5b/href</a></iframe><p>As you see when we implement airConditioner() from ICar we throw NotImplementException() but for ISP we shouldn’t do this.Let’s see correct one</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8c519384ca89c5a8c6544cd0202cce9c/href">https://medium.com/media/8c519384ca89c5a8c6544cd0202cce9c/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/37dacf13d536cf7e51d7544408452b9c/href">https://medium.com/media/37dacf13d536cf7e51d7544408452b9c/href</a></iframe><p>Now we create an extra interface which is IBmw and it has airConditioner()</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7e3f13bceb0be7e205e7bc56655e0dfd/href">https://medium.com/media/7e3f13bceb0be7e205e7bc56655e0dfd/href</a></iframe><p>We implement IBmw and engine() , airConditioner() methods came with it</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9407baf02ef2970588bc12c4caafafb8/href">https://medium.com/media/9407baf02ef2970588bc12c4caafafb8/href</a></iframe><p>Also Renault just implement ICar and now it doesn’t need to throw an not implemented exception.It just implement what it needs.</p><h3>D— Dependency Inversion Principle</h3><p>Dependency Inversion is the last one of the principles. What is DIP? In DIP</p><p>1- High-Level Modules must not depend on Low-Level modules both must depend on abstract concepts.<br><br>2-Abstract modules must not depend on details, details must depend on abstract concepts.</p><p>For example when your light bulb(Low-Level) burst you won’t change all of your electrical installation(High-Level). Also, both of them depends on abstract concepts like a socket, lamp. But we are interested in examples of codes, not this electricity example.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/667502136f8df68e550e4943d0761b2e/href">https://medium.com/media/667502136f8df68e550e4943d0761b2e/href</a></iframe><p>As you see in this example MessageManagment class depends on Mail and Sms againt do DIP .</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4e1eb09cde6152dff24a75d4130f2c49/href">https://medium.com/media/4e1eb09cde6152dff24a75d4130f2c49/href</a></iframe><p>We created ISender and implement it to Mail and Sms . After this we just need to associate MessageManagment and ISender .</p><p>These are the SOLID Principles . Don’t forget this are not rules just principles.If you apply this always you will get used to these principles.Because SOLID principles are easy to learn and difficult to master.I want to finish my article with quotation from Martin Fowler .</p><p>“Any fool can write code that a computer can understand. Good programmers write code that humans can understand.” -Martin Fowler</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a01e691997c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/garantibbva-teknoloji/solid-principles-a01e691997c">SOLID PRINCIPLES</a> was originally published in <a href="https://medium.com/garantibbva-teknoloji">Garanti BBVA Teknoloji</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>