@@ -599,12 +599,12 @@ scenario where the file's content comes from some other source.
599599
600600Relatedly, stateful objects are sometimes useful or even necessary,
601601but if something can be done with a function, use a function. Several
602- of the INI file readers on NPM provide an interface style that require
603- you to first create an object, then load the file into your object,
604- and finally use specialized methods to get at the results. This type
605- of thing is common in the object-oriented tradition, and it's
606- terrible. Instead of making a single function call and moving on, you
607- have to perform the ritual of moving your object through various
602+ of the INI file readers on NPM provide an interface style that
603+ requires you to first create an object, then load the file into your
604+ object, and finally use specialized methods to get at the results.
605+ This type of thing is common in the object-oriented tradition, and
606+ it's terrible. Instead of making a single function call and moving on,
607+ you have to perform the ritual of moving your object through various
608608states. And because the data is now wrapped in a specialized object
609609type, all code that interacts with it has to know about that type,
610610creating unnecessary interdependencies.
0 commit comments