Software, life, and random thoughts
Home/Tags/design patterns/

Tag : design patterns

  1. A while back I wrote a blog post on coupling and the observer pattern. Looking back, I did a pretty poor job describing what it wrong about it. I will attempt to correct this. We all want simple and descriptive code. Code that is self documented. Code that makes sense, Code that tells us a story. Lets look at a kind of code I have seen many times…
  2. PubSub (or the observer pattern) is obviously the hottest pattern in client side development, and I would like to take a shot at trying to refine the best practices for using it in a flexible and robust way. The definition provided in the original Gang of Four book on Design Patterns states: “Define a one-to-many dependency between objects so that…
  3. For a quick assignment I was asked to write the following program: In the language of your choosing build an application that, given an English language document as input, builds a data structure capturing the count of each word in the document. Bonus: Create an inverted index as well: a mapping of the words to absolute positions in the document…

©2023 Uzi Kilon