The Startup
Published in

The Startup

Flyweight Design Pattern in PHP

Polish version of the article is available under the following link

This design pattern can be used if we have really a lot of small objects (small like flies…) that differ only in provided state or many data that do operation on similar input (or part of its state is repeatable).

Imagine that you are importing a huge CSV file with several thousand rows of information about TVs…

--

--

--

Get smarter at building your thing. Follow to join The Startup’s +8 million monthly readers & +756K followers.

Recommended from Medium

Throttling Network Bandwidth

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jakub Kapuscik

Jakub Kapuscik

Tech Manager at Miinto, guineafowl enthusiast

More from Medium

Dino Cajic explaining Type Declarations in PHP