There is no clear yes or no on this pattern. It is indeed commonly used in some areas.
It has the obvious advantage that it introduces the naming and by that making your code easier to read and maintain, which is always good and also reduces likelyness of bugs.
But it also has disadvantages. The biggest is probably that, for a reader, the intend of the variable may not be directly clear. Tripping into thinking that it might be used later on, thus polluting your variable scope. It might also just not be very convenient if you employ this pattern all the time.
Without going into much detail, there are some other solutions to it:
- Most IDEs have a feature called parameter-hints
- Some languages, like Kotlin have named-parameters
- A builder pattern for the method-call would introduce explicit naming
- Redesign the method to not allow optional null-parameters (some consider optional-parameters a bad practice)
- Get rid of optional parameters by overloading your method
Apart from that, the question is probably too opinion-based for StackOverflow, especially since there is not really a strong opinion on this pattern in the community.