Git Product home page Git Product logo

solid's Introduction

SolidPrinciples

Bu proje, SOLID prensiplerine uygun bir Java uygulamasını içermektedir. Her bir SOLID prensibine yönelik örnekler içerir ve yazılım tasarımındaki temel prensiplere odaklanarak kod kalitesini artırmayı amaçlar.

SOLID Prensipleri

1. Single Responsibility Principle (SRP) - Tek Sorumluluk Prensibi

Bu prensip, bir sınıfın sadece bir sorumluluğu olması gerektiğini ifade eder. Örneğin, Araba sınıfı sadece araba bilgilerini saklamalı ve görüntülemelidir.

2. Open/Closed Principle (OCP) - Açık/Kapalı Prensibi

Bu prensip, bir sınıfın değişiklere kapalı, ancak yeni özelliklere açık olması gerektiğini belirtir. Kodu değiştirmeden yeni özellikler eklemeyi sağlar.

3. Liskov Substitution Principle (LSP) - Liskov Yerine Koyma Prensibi

Alt sınıflar, üst sınıfların yerine kullanılabilir olmalıdır. Örneğin, ElektrikliAraba sınıfı, genel Araba sınıfının yerine geçebilmelidir.

4. Interface Segregation Principle (ISP) - Arayüz Ayırma Prensibi

Bir sınıfın ihtiyaç duymadığı metotları içermemesi gerektiğini belirtir. Arayüzler, sadece ihtiyaç duyulan metotları içermelidir.

5. Dependency Inversion Principle (DIP) - Bağımlılıkları Tersine Çevirme Prensibi

Üst seviye modüller, alt seviye modüllere bağlı olmamalıdır. Her ikisi de soyutlamalara bağlı olmalıdır. Örneğin, Araba sınıfı, ArabaMotor arayüzüne bağlı olmalıdır.

Projenin Kullanımı

  1. Proje dosyalarını bilgisayarınıza kopyalayın.
  2. Java IDE'sini kullanarak projeyi açın.
  3. Örnekleri ve SOLID prensiplerini inceleyin.

Katkıda Bulunma

  1. Bu depoyu fork edin.
  2. Yeni özellik eklemek veya hata düzeltmek için bir dal oluşturun.
  3. Değişikliklerinizi yapın ve bir pull request oluşturun.

solid's People

Contributors

adl1coder avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.