social.coop is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Fediverse instance for people interested in cooperative and collective projects. If you are interested in joining our community, please apply at https://join.social.coop/registration-form.html.

Administered by:

Server stats:

478
active users

#designpatterns

2 posts2 participants0 posts today

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

We have a "rules engine" in a database. Another application uses it for a specific task.

The rules are ranked just like a "search engine".

There's no real apparatus to regression test this thing when you update a rule.

Did it break another rule? I don't know. I can't manually test all possible permutations of each rule. That's what automation is for.

I need something .. to test all this.

Recommendations?

Feels like this is designed....bad