November 2017
Intermediate to advanced
670 pages
17h 35m
English
So, instead of GetTravelTime(startLocation, endLocation, speed), our call should look like this: GetTravelTime(info).
There are times when a function call like this Initialize(Config) makes sense, and it depends on our use case.
However, maybe we should strive to simplify what our function does so that it naturally requires fewer parameters rather than finding ways to jam more parameter values into a single input parameter object.
Read now
Unlock full access