|
|
|
|
|
by karmakurtisaani
615 days ago
|
|
I've cleaned up code where input parameters came in a dict form. Absolute shit show. - The only way to figure out which parameters are even possible was to search through the code for the uses of the dict. - Default values were decided on the spot all over the place (input.getOrDefault(..)). - Parameter names had to be typed out each time, so better be careful with correct spelling. - Having a concise overview how the input is handled (sanitized) was practically impossible. 0/10 design decision, would not recommend. |
|