5 ms·
Never cleaned up the most obtuse part of that code snippet - why are we only keeping the last three parameters?
by pavon 4y ago
Never cleaned up the most obtuse part of that code snippet - why are we only keeping the last three parameters?
- lbriner 4y agoI think a contrived example. In truth, there is much more likely to be a way of tidying this up with a nice reuseable function like "get_querystring_params" which returns an array and then take the first 3 with a comment like "only the first 3 parameters are used for the search". Taking a subet of query params smells in its own right so, again, might be a bad example.