Skip to content

anjanasilva/software-patterns

Repository files navigation

Software Patterns

  • Singleton Pattern

Singleton pattern is a highly useful pattern which can be extremely useful when used correctly. Singleton pattern ensures that there is only one instance of a class in the system. This is useful for classes that represent resources that should be shared, such as a database connection or a logger.

More - https://www.linkedin.com/pulse/singleton-pattern-software-development-anjana-silva/

  • Strategy Pattern

Strategy pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable. It lets the algorithm vary independently from clients that use it.

More - https://www.linkedin.com/pulse/strategy-pattern-software-development-anjana-silva/

  • Facade Pattern

Facade pattern provides a simplified interface to a complex system. This can be useful for making a system easier to use or for hiding its complexity.

More - https://www.linkedin.com/pulse/facade-pattern-software-development-anjana-silva/

  • Decorator Pattern

The Decorator pattern is a structural design pattern that allows you to add new features to an object dynamically. This can be useful for adding logging, auditing, or other functionality to objects.

More - https://www.linkedin.com/pulse/decorator-pattern-software-development-anjana-silva/

  • Adapter Pattern

The Adapter pattern is a structural design pattern that allows you to make two incompatible interfaces work together. It acts as a bridge between two existing classes to make them work together without modifying their source code.

More - https://www.linkedin.com/pulse/adapter-pattern-software-development-anjana-silva/

  • Composite Pattern

The Composite pattern is a structural design pattern that allows you to treat individual objects and compositions of objects in a uniform way. This can be useful for representing tree-like structures or for creating reusable components.

More - https://www.linkedin.com/pulse/composite-pattern-anjana-silva/

  • Observer Pattern

The Observer pattern is a behavioural design pattern that allows you to define one-to-many relationships between objects so that when one object changes state, all of its dependents are notified and updated automatically.

More - https://www.linkedin.com/pulse/observer-pattern-anjana-silva/

Releases

No releases published

Packages

No packages published

Languages