Singleton Design Pattern

Introduction Singleton is a popular topic that you will encounter at least once during your job search. This short tutorial describes three approaches to implement a singleton class. Singleton Pattern A singleton is simply a class that is instantiated exactly once. We want a single instance of a particular object in the memory. The common […]

If/Else Cumleleri Icin Rule Tasarim Kalibi

Bugun, projemizde kullandigimiz Rule tasarim kalibi (Rule Design Pattern) anlatacagim. Bu yontemi zaman baskisi yuzunden ekibe kabul ettirmek zor oldu ama ortaya cikan sonuctan memnun kaldik. Umarim sizin de isinize yarar. Problem Spring Boot ile yazilan backend uygulamamizda farkli musteri tipleri icin farkli kurallarin uygulandigi bir fonksiyon vardi. Musteri tiplerine gore onyuze farkli bildirim mesajlarini […]