Editing JavaScript/Notes/Factory
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 372: | Line 372: | ||
==== Be Smart, not Clever ==== Β | ==== Be Smart, not Clever ==== Β | ||
By using a <code>config</code> parameter object, we can define a parameter list of two, thereby avoiding the need for the clever <code>newApply</code> trick. | By using a <code>config</code> parameter object, we can define a parameter list of two, thereby avoiding the need for the clever <code>newApply</code> trick. | ||
=== Problem: Not Dry Again! === | |||
=== Solution II: Replace ArgumentList with Parameter Object === | === Solution II: Replace ArgumentList with Parameter Object === |