fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

9.8K
active users

#designpatterns

2 posts2 participants0 posts today

Have you heard of the observer pattern?

The observer design pattern is one of the patterns we're often exposed to early on in programming.

This pattern allows observers to observe observables.
(Clear as mud, right?)

Said another way, the different components of your system can listen for notifications, changes, and events by following this pattern!

Check out the article:
devleader.ca/2023/11/17/exampl

See how to iterate a composite dataset without exposing its internal logic. Its a combination of the composite and Iterator design patterns while implementing an office furniture system. It uses workstation as a composition of office chair, desk and cabinet.

Read More...👇
muwangaxyz.medium.com/composit

Composite and Iterator Design Pattern Combination in TypeScript — Mohammed Muwanga — Web Development
Medium · Composite and Iterator Design Pattern Combination in TypeScriptBy Mohammed Muwanga

Create maintainable and scalable code using a strongly typed Typescript by combining abstract factory method and proxy design pattern. I have just implemented them using an online office furniture system with chairs, desks and sofa creation.

Here is how👇

muwangaxyz.medium.com/combinin

Combining Abstract Factory Method and Proxy Design Pattern Using TypeScript — Mohammed Muwanga
Medium · Combining Abstract Factory Method and Proxy Design Pattern Using TypeScriptBy Mohammed Muwanga