Prototype

Dmitri Nesteruk · Apress eBooks · 2021

Think about something you use every day, like a car or a mobile phone. Chances are, it wasn't designed from scratch; instead, the manufacturer chose an existing design, made some improvements, made it visually distinctive from the old design (so people could show off), and started selling it, retiring the old product. It's a natural state of affairs, and in the software world, we get a similar situation: sometimes, instead of creating an entire object from scratch (the Factory and Builder patterns can help here), you want to take a preconstructed object and either use a copy of it (which is easy) or, alternatively, customize it a little.

Read the paper · More papers on PaperTik