30 ms·
Crisis == opportunity ツ TFA missed the point of splitting complex expressions into separate lines: naming the single-use vars clearly makes the whole calculati
by nicwolff 4y ago
Crisis == opportunity ツ
TFA missed the point of splitting complex expressions into separate lines: naming the single-use vars clearly makes the whole calculation easy to follow. In the example given, nothing about the one-line `map split over split of split` tells a reader that it's parsing a query string – just splitting it in two and naming the temp var `query_params` makes it clear.
Although `last_3_query_params` would be more precise, and something that explains why TF you'd want that would be better... ツ