Close

SOLID

SOLID is a mnemonic acronym for five object-oriented design (OOD) principles that help to create more understandable, flexible, and maintainable code. The principles are:

  • Single responsibility principle (SRP): A class should have only one responsibility. This means that it should only do one thing and do it well.
  • Open–closed principle (OCP): Classes should be available for extension but closed for modification. This means you should be able to add new features to a class without changing the existing code.
  • Liskov substitution principle (LSP): Derived classes should be substitutable for their base classes. This means you should be able to use a derived class object instead of an object of its base class without problems.
  • Interface segregation principle (ISP): Clients should not be forced to depend on interfaces they do not use. This means that you should not cause a client to implement an interface if it does not need to use all of the methods in the interface.
  • Dependency inversion principle (DIP): Depend upon abstractions, [not] concretions. This means you should depend on interfaces or abstract classes rather than concrete ones. This makes your code more flexible and easier to maintain.

The SOLID principles are often used together to create well-designed and maintainable code. They can help improve your code’s readability, testability, and scalability.

 

The SOLID Principles: A Guide to Better Object-Oriented Design

The SOLID Principles: A Guide to Better Object-Oriented Design

The SOLID principles are five object-oriented design principles that can help you write better code. They are: The Single Responsibility Principle The single responsibility principle (SRP) states that every class should have only one reason to change. This means that a class should only be responsible for one thing. For […]

Devamını Oku

How to Monitor Scheduled Events in MySQL

How to Monitor Scheduled Events in MySQL

There are two ways to see error logs of scheduled events on MySQL: The SHOW EVENTS statement will return a table of information about each scheduled event. The table will include the following columns: If the ERRORS column for a scheduled event is greater than 0, then the event has […]

Devamını Oku

Emeğe Saygı! Temiz Yaz, Kodun Kokmasın!

Emeğe Saygı! Temiz Yaz, Kodun Kokmasın!

Çeşitli şirketlerde, farklı büyüklüklerde yapılar içinde yazılım geliştiriyoruz.  Evde tek başına yazılım geliştiriyor olsak dahi farketmemelidir. İşimize saygımız, işimizi iyi yapmayı gerektirir.  İşimizi iyi yapacağız.  Kodumuz temiz olacak.  Kodun temiz olması nasıl olur demeyelim, temiz olmayan kod kokar ve kendini belli eder 🙂 Sınıf Tasarımı Prensipleri (Principles of Class Design) […]

Devamını Oku

Sustainable Software Design: Understanding the Benefits of the Common Closure Principle

Common Closure Principle

What? The Common Closure Principle (CCP) states:” The components’ classes should be closed against the same kind of changes. A change that affects a part affects all the classes in that component and no other components.” In other words, a component should not have multiple reasons to change. The Single […]

Devamını Oku

Kimseye Anlatmadım

Bülent Ortaçgil

Sev beni, sar beniBir tek kötü sözün sarsar beniBilinmez denizlerinKuytu koylarında bul beni Ben bunları kimseye anlatmadımKendimle bile konuşmadımBen bunları kimseye anlatmadımBir tek sen duy diyeSen bil diyeSen anla diye Sez beni, yaz beniKarmakarışıklığımdan çöz beniBirikmiş tortularınKirli sularından süz beni Ben bunları kimseye anlatmadımKendimle bile konuşmadımBen… Bülent Ortaçgil

Devamını Oku

The Reuse/Release Equivalency Principle is:

The Reuse/Release Equivalency Principle is:

The Reuse/Release Equivalency Principle is:“The granule of reuse is the granule of release. Only components that are released through a tracking system can be effectively reused. This granule is the package.” What is reuse? The copying code is not reused. If you copy or insert code/modules into your code, then […]

Devamını Oku

“Zuul’s Journey to Non-Blocking” by Arthur Gonigberg

Zuul

Zuul 2.0 is the latest iteration of the gateway application fronting Netflix’s API and underlying microservices. It was borne of a need to handle an ever-growing amount of traffic and a similarly ever-growing number of microservices to the front. We rebuilt Zuul from the ground up, leveraging the Netty framework […]

Devamını Oku

All About TensorFlow Code (Coding TensorFlow)

All About TensorFlow Code (Coding TensorFlow)

Welcome to our new series: Coding TensorFlow! This series is dedicated to deep-dive TensorFlow tutorials – Every episode will provide concrete, hands-on examples of how to best use TensorFlow for machine learning and AI. We hope you find them helpful! Subscribe to the channel to catch new episodes of Coding […]

Devamını Oku

What’s the Difference Between DevOps and SRE?

Site Reliability Engineering (SRE)

Seth Vargo and Liz Fong-Jones go head-to-head to determine which is better: DevOps or Site Reliability Engineering (SRE). In this video, Liz and Seth discuss the differences and similarities between DevOps and SRE, ultimately realizing that DevOps and SRE aren’t two competing methods, but rather close friends designed help break […]

Devamını Oku