Prototyping reactive interfaces with an adapted JavaScript Observer pattern – Ben Frain

For the purpose of this post, consider prototyping a simple stock buying widget. The stock price will change randomly and based upon the current stock price and our minimum buy price (that the user will input) a ‘Buy Stock’ button will light up or not as the case may be. This is as simple as possible a demonstration as I could imagine but you’ll hopefully appreciate the principle. What this widget does will not be important so much as the way it is doing it.

Source: Prototyping reactive interfaces with an adapted JavaScript Observer pattern – Ben Frain

Leave a Reply

Your email address will not be published. Required fields are marked *