Open-Closed Principle Example: Parse CSV File With TypeScript

Hoang Dinh
ITNEXT
Published in
4 min readJul 9, 2023

--

Photo by Viktor Forgacs on Unsplash

The Open-Closed Principle

The Open-Closed principle (OCP) is one the 5 SOLID design principles. It was popularized by the American computer scientist and instructor, Robert C. Martin (aka Uncle Bob) in a paper he published in 2000.

The other 4 SOLID design principles are:

  • Single…

--

--