Is it generally easy for people to get permission from their day job to code on the side, without assigning all rights to the employer?
This definitely depends on the employer and your geographical location; for example, in California, clauses like this are not legal except under certain conditions: https://leginfo.legislature.ca.gov/faces/codes_displaySectio...
OK if your a semi pro musician but a generic developer sie gig not so much.