3 ms·
Great point! I have never heard that, but it makes perfect sense. Hopefully I will remember in the future.
by jhenkens 13y ago
Great point! I have never heard that, but it makes perfect sense. Hopefully I will remember in the future.
- reconbot 13y agoI don't agree, you should just know what they are. Defaults are helpful.
- tnorthcutt 13y agoUntil they change, and your code breaks, and you have to go figure out why. The point of not (silently) using defaults is that as long as you're explicit with your arguments, you won't get surprised by changing defaults. Of course, you might get surprised by any number of other changes, but you can at least reduce your failure surface area a little bit :-)