Bonus advice: Write into your grant proposals that your research software will be released under an OSI-approved license. If you're lucky to have your grant funded, the condition of open-source code release becomes part of the funding contract. This can save you some grief in trying to explain to staff at the university technology transfer office why your software needs to be open source. They often don't understand the field, and want to default to a proprietary license, imagining some commercial value may exist in your research code. Default to open!