mas.to is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hello! mas.to is a fast, up-to-date and fun Mastodon server.

Administered by:

Server stats:

12K
active users

#designpatterns

1 post1 participant0 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

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

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