Comment

Comment by geforce

The specification pattern can also be used to replace multiple IFs. If you look at Wikipedia, they propose a quite full-fledged and complex specification pattern, but it is possible to make a more lightweight one for your needs.
parent geforce 7 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton