Keep Learning

Tagged in: design patterns

Should a function or method have only one return statement?

Last updated: August 30, 2024 by Atakan Demircioğlu

Should a function have only one return statement? This week I think about this question in my mind. This post is about my findings and also ideas about return statements. I found another article…

UML Summary

Last updated: August 17, 2024 by Atakan Demircioğlu

Deployment Diagram: Depict the physical resources in a system, including nodes, components, and connections. Determines how the software is deployed. Composite Structure Diagram: provides a logical…

Design Patterns And Design Principles Notes

Last updated: August 17, 2024 by Atakan Demircioğlu

Here are my design pattern notes in summary that I’ve already extracted. The order may be mixed, but I noted the important points and concepts. KISS (Keep it simple, stupid!): Very important…

Design Patterns # Creational

Last updated: August 17, 2024 by Atakan Demircioğlu

1- Singleton Pattern: Involves a single class that is responsible to create an object while making sure that only a single object gets created. 2- Builder Pattern: The main purpose of the Builder…

Do you think long functions are a good idea?

Last updated: August 17, 2024 by Atakan Demircioğlu

People always ask questions like, “How long should functions be”, “When is a function too long?” and so on. Do you think 1000 lines are long? (Probably you will say: Absolutely!) Do you think 100…

Understanding Facade Design Pattern

Last updated: August 17, 2024 by Atakan Demircioğlu

It is basically a structural design pattern that provides a simplified Interface to a set of complex classes. Often needed when there is a large number of interdependent classes or because parts of…

Proxy Design Pattern in PHP

Last updated: August 17, 2024 by Atakan Demircioğlu

Learn how to implement the Proxy Design Pattern in PHP to control access to objects, enhance performance, and add additional functionality without modifying the original code. Discover real-world use cases and step-by-step examples.