Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Let‘s say you have an UI pattern that styles some element and defines possible interactions with it. You do not want business code to do that job, so it’s easier to have a decorator that detects certain elements on the page.

(This is a purely theoretical example coming from someone with lots of architectural experience, I didn’t use it before).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: